View Full Version : Can someone make a "knock off" of psShutXP
asofiker
30th September 2008, 11:54 AM
I don't know about other people, but it still bugs me that psShutXP's "turn off" button doesn't actually turn the phone completely off, but just merely turns screen off.
I then came across another thread where _DrG_ figured out the command line to actually turn your phone completely off
(31#"\Windows\PowerOffWarning.exe", "PowerOff")
I had asked DrG if it would be possible to somehow plug this into psShutXP so that the app would actually be capable of doing a complete shutdown of ur phone. He said yes as long as I could get the source code. Well I tried numerous times to contact the makers of psShutXP and ask them for the source code but no luck. I imagine the only way now to achieve this would be to just make a new app from scratch.
I know some people are saying why not just make a .lnk file for the shutdown command and then use that whenever you want to shutdown. Its just that I would like to have everything in 1 nice little working app.
So basically I am starting this thread in an attempt to see if anyone would be willing to use the command line that _DrG_ provided to make a "knock off" of psShutXP that can actually shut your phone completely OFF.
So if anyone would be able to do this that would be awesome! I would be very appreciative and I'm sure a lot of other people would be too.
Thanks
DaveShaw
30th September 2008, 11:57 AM
I can put it on my todo list. Might take a week or two...
How much like the original do you want it?
Just the Dialog for shutdown? Or all the other stuff as well?
Ta
Dave
asofiker
30th September 2008, 02:03 PM
First of all, Thanks for responding!
But yeah, take as long as you need, no rush at all. I mean u don't even have to be doing this so I am grateful!
And yes I would like it to have pretty much everything like psShutXP.
Sleep-like if you were to just push the power button
Turn Off-turn phone completely off like if you held down power button for 5 seconds, which is what this command does (31#"\Windows\PowerOffWarning.exe", "PowerOff")
Reset-soft reset phone
Timer-for if u want to schedule a soft reset or turn phone completely off. I dont know if its too demanding, but would it be possible to make the timer so that
1.you can either set it for a countdown of X number of seconds that the user defines
2.have the option to enter a time of day that it will execute the restart/shutdown, which you can choose to happen to be a one time thing or a recurring. And if you choose recurring you will be given the option of making it Daily/Weekly/Monthly
If the whole timer thing is too much I totally understand, beggars cant be choosers, right. So i would be more than happy with just the Sleep/Shutdown/Restart buttons.
Thanks again for attempting to do this. I hope you are able to get it done.
Many thanks!
DaveShaw
30th September 2008, 02:07 PM
Kewl.
A Timer maybe for V2 then. :)
There will have to be some differences, because psShutXP is copyrighted work. I'll try and make a "lightweight Open Source (read only to start) alternative that has support for powering off the Kaiser".
Ta
Dave
asofiker
30th September 2008, 03:23 PM
I was just messin around real quick and came up with this layout. Dont have to use it if u dont want. Just an idea.:D
http://www.4shared.com/file/65079659/aa3079c/ShutDownTemplateLG.html
Mikeysax
30th September 2008, 03:43 PM
Nice. I saw the pic. Try to make it a little less transparent. But, it still looks pro. Like it's part of the PPc. Great work. Keep it up.
Twenty4
30th September 2008, 08:39 PM
I was just messin around real quick and came up with this layout. Dont have to use it if u dont want. Just an idea.:D
http://www.4shared.com/file/65079659/aa3079c/ShutDownTemplateLG.html
I like that.
DaveShaw
2nd October 2008, 12:47 PM
I found out why psShutXP doesn't work. MS removed the option to Power off a Device from the API. The phone manufacturer has to implement a method for this. I am working on hacking apart the PowerOffWarning.exe for my use...
@aso,
Have you got the original graphics that you posted, so I can take out the Images.
I have a simple 3 button app working, now it needs skinning...
http://forum.xda-developers.com/images/icons/icon3.gif - Add skinning support :)
Ta
Dave
asofiker
3rd October 2008, 08:51 AM
Hey Dave! Here is the artwork! I changed it up a little bit to make it look a little more classy. Its in the form of a Photoshop CS3 file, I hope that is alright.
My idea was to not have the whole silver button be what you would tap, but rather just the actual button on the side. Look at pic 1 for reference.
Artwork (http://www.4shared.com/file/65472263/8ac2d08a/ShutDownTemplate3a.html)
Heres the original artwork (http://www.4shared.com/file/65473242/774fe5fb/ShutDownTemplate1.html) in case my new design just totally screwed up what you have made so far.
In case anyone else is curious about what this app might look like. Here are some screenshots.
Active Hotspots
http://dc87.4shared.com/img/65472834/644634ba/ShutDownTemplate3_hotspots.jpg (http://www.4shared.com/file/65472834/644634ba/ShutDownTemplate3_hotspots.html)
When App appears
http://dc87.4shared.com/img/65472960/1f9e6ed1/ShutDownTemplate3.jpg (http://www.4shared.com/file/65472960/1f9e6ed1/ShutDownTemplate3.html)
When a button is pushed
http://dc87.4shared.com/img/65472994/9f6bb607/ShutDownTemplate3_press.jpg (http://www.4shared.com/file/65472994/9f6bb607/ShutDownTemplate3_press.html)
DaveShaw
3rd October 2008, 09:01 AM
Hey Dave! Here is the artwork! I changed it up a little bit to make it look a little more classy. Its in the form of a Photoshop CS3 file, I hope that is alright.
My idea was to not have the whole silver button be what you would tap, but rather just the actual button on the side. Look at pic 1 for reference.
Artwork (http://www.4shared.com/file/65472263/8ac2d08a/ShutDownTemplate3a.html)
In case anyone else is curious about what this app might look like. Here are some screenshots.
Active Hotspots
http://dc87.4shared.com/img/65472834/644634ba/ShutDownTemplate3_hotspots.jpg (http://www.4shared.com/file/65472834/644634ba/ShutDownTemplate3_hotspots.html)
When App appears
http://dc87.4shared.com/img/65472960/1f9e6ed1/ShutDownTemplate3.jpg (http://www.4shared.com/file/65472960/1f9e6ed1/ShutDownTemplate3.html)
When a button is pushed
http://dc87.4shared.com/img/65472994/9f6bb607/ShutDownTemplate3_press.jpg (http://www.4shared.com/file/65472994/9f6bb607/ShutDownTemplate3_press.html)
Thanks. My art and design skills are lacking so this is appreciated. :)
I'm at home today so I will see if I can get on my PC later and knock up a quick demo.
Dave
asofiker
3rd October 2008, 09:02 AM
Geez your fast! hahaha.
Sounds good!
manrique0908
4th October 2008, 03:30 AM
This app looks like it'll be very usefull. please dave keep us updated on your progress
DaveShaw
8th October 2008, 01:13 AM
Hi,
Here's my alpha release.
I'll make a new thread and do a beta next release.
http://taeguk.co.uk/xda/xdaShutdown/Screen01.png
Still todo for next release:
*App Icon
*Hotspots (I still need to get my head around the code behind this).
*Fix up Graphics, a few Images move when pressed.
*Fix app loadtime (if possible).
EDIT:
*Alpha Blending and a background
Ta
Dave
asofiker
8th October 2008, 06:50 PM
Aesome man! It works good! Thank you so much for taking the time to make this. I really appreciate it. I'm sure others are going to enjoy it too.:D
This app can only get better, that is if you decide to make changes, even though I am completely happy with it as is. Although the timer function would be a cool addition to see in the future ;)
Finally a program that will shut your phone "COMPLETELY" off!
Goodbye psShutXP......HELLO XDA SHUTDOWN!
Pisca
8th October 2008, 08:30 PM
Installed and assigned to one button, seems to work quite well
Sometimes the most simple things are the most usefull
Thanks for you Application, quite nice
DaveShaw
9th October 2008, 10:29 AM
Thanks for the support guys.
@asofiker,
any chance you could make a pressed X button for me? I like the idea of it animating as it is pressed. ;)
Ta
Dave
dsixda
10th October 2008, 02:41 AM
Hi guys,
I'm actually over at the Elf forum, but I acquired a psShutXP from someone which has the Full Shutdown capability. The only problem is that the Hard Reset and Timer menus are all in Chinese ;-)
Anyways, I'm attaching it for your curiosity.
But I think Dave's app is much sharper and also in English, so it's better LOL
Good work!
EDIT: Regarding your program:
- The "sleep" function sometimes doesn't work if launched from Manila2D's Program tab. It just closes the app but does not put the device into Sleep.
- Also, the sleep function turns off the music in Audio Manager, unlike psShutXP. Probably should look at how they do it in psShutXP.
- Program also takes a few seconds to start up, maybe the graphics need to be scaled down a bit?
Otherwise, good job!
dsixda
10th October 2008, 02:48 AM
In case you're interested, here's your file along with an XP-style shutdown icon on it (there was no icon in the Alpha).
ayyu3m
10th October 2008, 07:21 AM
Thanks for the support guys.
@asofiker,
any chance you could make a pressed X button for me? I like the idea of it animating as it is pressed. ;)
Ta
Dave
awesome work dude. jus saw this thread thru dsixda
asofiker
10th October 2008, 08:52 AM
Here are the cancel buttons artwork
http://www.4shared.com/file/66369255/8e00a2e8/Cancel_Buttons.html
DaveShaw
10th October 2008, 10:08 AM
Hi guys,
I'm actually over at the Elf forum, but I acquired a psShutXP from someone which has the Full Shutdown capability. The only problem is that the Hard Reset and Timer menus are all in Chinese ;-)
Anyways, I'm attaching it for your curiosity.
But I think Dave's app is much sharper and also in English, so it's better LOL
Good work!
EDIT: Regarding your program:
- The "sleep" function sometimes doesn't work if launched from Manila2D's Program tab. It just closes the app but does not put the device into Sleep.
- Also, the sleep function turns off the music in Audio Manager, unlike psShutXP. Probably should look at how they do it in psShutXP.
- Program also takes a few seconds to start up, maybe the graphics need to be scaled down a bit?
Otherwise, good job!
Thanks for the intrest and report.
I will play with the SLEEP API call and see if I can use a different one that will work.
And I am planning on playing load time...
And thank's for the Icon Version, it was 12:15 am when I posted the first version, just a proof of concept. I'll try and do an update over the weekend.
@asofiker
Thanks for the new Artwork.
Ta
Dave
Mikeysax
10th October 2008, 02:33 PM
Hi, I have an Att tilt with the 6.1 rom OEM. And the xda shutdown says I need a newer version of Microsoft Framework Compact. What can I do I'm running a cab file that with just a tap asks to be turned off. But, I'd like to run this app. Let me know if you guys can help.
Thanks. Mikey
DaveShaw
10th October 2008, 03:11 PM
Hi, I have an Att tilt with the 6.1 rom OEM. And the xda shutdown says I need a newer version of Microsoft Framework Compact. What can I do I'm running a cab file that with just a tap asks to be turned off. But, I'd like to run this app. Let me know if you guys can help.
Thanks. Mikey
I'll re-comile it for the 2.0 framework in the next release. 3.5 is just my default Framework, I don't use any 3.5 features in my code.
You can install .net 3.5 From a CAB file from this thread: http://forum.xda-developers.com/showthread.php?t=373721
Ta
Dave
siaosi
10th October 2008, 08:16 PM
Guys thanks a lot,
Very helpfull application
How do we incorporate the icons that asofiker provided?
asofiker
11th October 2008, 01:17 AM
Dave will be putting the new cancel buttons in on the next release.
DaveShaw
11th October 2008, 01:27 AM
Dave will be putting the new cancel buttons in on the next release.
I'm on with it as I type... :p
DaveShaw
11th October 2008, 02:06 AM
Ok I have 0v01b up.
This is the second proof of concept I think. Next release will be in the Dev and Hacking forum (I'll post a link).
Change Log:
-Re-extracted Orginal Artwork by asofiker and got them all to the same dimensions (stopped the buttons moving when pressed).
-Added the new Cancel and CancelDown image from asofiker.
-Changed the code behind "Sleep" to perform a "Light's Off". Let me know about this, I might add support for both yet.
-App Icon, thx: dsixda (I ripped it from the version you posted).
-Tweaks to improve the load speed, Ideas still welcome... ;)
Outstanding:
-Manilla 2D Issues, let me know if "Light's out" works better.
-Move to CF2.0, might not happen, depends which is quicker.
Screen:
http://taeguk.co.uk/xda/xdaShutdown/Screen02.png
Download:
-Attachment.
asofiker
11th October 2008, 01:45 PM
NICE! You are the man Dave! Just keeps gettin better and better!
Pisca
11th October 2008, 07:04 PM
I was using the 1st version, with "no lock buttons", to put Kaiser in the sleep mode, and wake-up with one touch in any button (usually "OK")
With the recent version I went to "sleep" mode, but to wake-up I must go to the hard-on/off button to wake up my device, even with no-lock option on settings
Running Manilla2D
Maybe I'm doing something wrong
Blowfish64
12th October 2008, 06:53 AM
Sweet! Was hoping someone would eventually take up where ShutXP left off. Any chance of making this fully skinnable? Also, I always loved the greyout effect that psShutXP did. Any chance that could get added as an option?
asofiker
12th October 2008, 08:40 PM
Pisca, that is how its supposed to be, because the sleep button is actually putting it to sleep, not just turning screen off. Someone had suggested to make an option for just screen off as well. So, I guess if demand is popular enough, then Dave could maybe make 2 versions. One where the sleep puts it to sleep and one where sleep just turns screen off. That is if Dave wants to. I cant speak for him :D
Pisca
12th October 2008, 09:41 PM
Thanks for your reply, in fact, at least to me, switch off the screen assigned to one button seems to be very usefull
I'll be using V. 01A
Blowfish64
13th October 2008, 05:58 AM
Hey I'd like a switch screen off option. If I want to put to sleep I can just tap the power button so that's less useful to me personally.
DaveShaw
13th October 2008, 10:57 PM
Here is 0v01c.
I have added a settings screen allowing you to switch between Sleep and Lights Out.
Settings
http://taeguk.co.uk/xda/xdaShutdown/Screen03.png
Any other Sleep/Light's Out Combination that I've missed let me know (Prefereably with some more info on how to test :))
Enjoy...
Where Next:
-Skinning has come up, as has Alpha Blending. Before I address this I am gonna look at the Load Speed. A Native C++ Version may be better, but it'll be a re-write and a massive learning curve for me :p
-Timer. Possible, I might code this, but if I am going for a re-write, it might be a waste...
-Any other bugs, I will try and publish fixes as and when.
-App Icon, I know it's crap, sorry :(
Ta
Dave
Blowfish64
14th October 2008, 09:02 AM
Here is 0v01c.
I have added a settings screen allowing you to switch between Sleep and Lights Out.
Settings
http://taeguk.co.uk/xda/xdaShutdown/Screen03.png
Any other Sleep/Light's Out Combination that I've missed let me know (Prefereably with some more info on how to test :))
Enjoy...
Where Next:
-Skinning has come up, as has Alpha Blending. Before I address this I am gonna look at the Load Speed. A Native C++ Version may be better, but it'll be a re-write and a massive learning curve for me :p
-Timer. Possible, I might code this, but if I am going for a re-write, it might be a waste...
-Any other bugs, I will try and publish fixes as and when.
-App Icon, I know it's crap, sorry :(
Ta
Dave
Looking forward to it. Really hope you can get the greyout and skinning working. Also, could you add an option for hard-reset too?
Pisca
14th October 2008, 01:29 PM
Thanks for the new version, with options, installed, if any bug I will report to you
Waiting for a bit more speed :p
Mark Crouch
14th October 2008, 10:48 PM
....... Also, could you add an option for hard-reset too?
Are you kidding :eek:
That's like asking if M$ can put a desktop icon to "reformat your hard disk and re-install a copy of Windows"
The procedure to hard reset is intentionally awkward - requiring the use of both hands, both feet and an elbow......ain't no way I'd want a big red button that could do that - all it would take is some numbnuts to nudge you when you're hovering over the "Turn screen off" button and blammo!!!
Dave....please don't even think about thinking about this :D
Mark.
dsixda
15th October 2008, 12:18 AM
Are you kidding :eek:
That's like asking if M$ can put a desktop icon to "reformat your hard disk and re-install a copy of Windows"
The procedure to hard reset is intentionally awkward - requiring the use of both hands, both feet and an elbow......ain't no way I'd want a big red button that could do that - all it would take is some numbnuts to nudge you when you're hovering over the "Turn screen off" button and blammo!!!
Dave....please don't even think about thinking about this :D
Mark.
Actually, this option is in psShutXp, although hidden in the top right corner. If you click it, it will say "Are you sure you want to do a hard reset?".
It might be useful to a few people ;-)
Mark Crouch
15th October 2008, 12:49 AM
Actually, this option is in psShutXp, although hidden in the top right corner. If you click it, it will say "Are you sure you want to do a hard reset?".
It might be useful to a few people ;-)
OK...my bad :)
I didn't know it was a hidden option in psShutXP - probably just as well :D - so now you've told a few hundred other people too!!
Admittedly, this could be useful to the "flash junkies" in the community, but it would have to be hidden/obfuscated so it couldn't be selected by accident/nudge/inquisitive child :D
Me, I'm quite happy with the contortionism required to do it manually!
Mark.
Blowfish64
15th October 2008, 01:21 AM
OK...my bad :)
I didn't know it was a hidden option in psShutXP - probably just as well :D - so now you've told a few hundred other people too!!
Admittedly, this could be useful to the "flash junkies" in the community, but it would have to be hidden/obfuscated so it couldn't be selected by accident/nudge/inquisitive child :D
Me, I'm quite happy with the contortionism required to do it manually!
Mark.
Well obviously it would need to have a confirmation box pop up, unlike the other buttons. And yes, this is indeed in psShutXP and I have indeed used it several times. As for it being hidden, since this is going to be a skinnable program, that could be left to the discretion of the skinners ;).
DaveShaw
15th October 2008, 10:29 AM
No updates, didn't get time to get on last night.
There's the clear storage in Settings>System that does the equivelant of a Hard Reset. I'm not sure on the code to Hard Reset, I might add it in a later version.
Personally, I just use the Key Press combiniation.
Ta
Dave
asofiker
15th October 2008, 05:44 PM
I'm not sure, but I think it might be
31#"\Windows\ClearStorage.exe", "ClearStorage")
DaveShaw
15th October 2008, 05:45 PM
I'm not sure, but I think it might be
31#"\Windows\ClearStorage.exe", "ClearStorage")
I meant other than calling Clear Storage. :p
But, yeah I could try that.
Ta
Dave
joel2009
15th October 2008, 11:49 PM
is there a way to map this through a reg edit or whatever to the power button instead of the windows prompt you normally get on long press
DaveShaw
15th October 2008, 11:55 PM
is there a way to map this through a reg edit or whatever to the power button instead of the windows prompt you normally get on long press
Use Schap's advanced config and map it to the Long Press Power and Tada :)
Ta
Dave
dsixda
16th October 2008, 12:13 AM
is there a way to map this through a reg edit or whatever to the power button instead of the windows prompt you normally get on long press
Rename it to PowerOffWarning.exe and copy to Windows folder.
DaveShaw
16th October 2008, 12:24 AM
Rename it to PowerOffWarning.exe and copy to Windows folder.
Please don't :(
That's how I shutdown the phone. Without PowerOffWarning.exe I cannot shut down the phone.:D
Ta
Dave
asofiker
16th October 2008, 03:24 AM
Hey Dave, what command are you using in your app to put the phone to sleep?
joel2009
16th October 2008, 11:17 PM
thanks hadn't seen that before in there....... but i found it :)
dsixda
16th October 2008, 11:58 PM
Please don't :(
That's how I shutdown the phone. Without PowerOffWarning.exe I cannot shut down the phone.:D
Ta
Dave
But we use your app to shut down the phone ;)
DaveShaw
17th October 2008, 01:04 AM
But we use your app to shut down the phone ;)
Yeah, and my app calls PowerOffWarning.exe when you click shutdown.
MS and/or HTC removed the API call :(
Ta
Dave
dsixda
17th October 2008, 02:04 AM
Yeah, and my app calls PowerOffWarning.exe when you click shutdown.
MS and/or HTC removed the API call :(
Ta
Dave
Doh! Didn't try that. psShutXP can do that - it calls GwesSPowerOffSystem I think.
dsixda
19th October 2008, 09:59 PM
Dave, anything new with your program so far? Are you still working on it?
By the way, is it possible to make "Light Off" the default rather than "Sleep"? Because, most people will press the power button to put it into Sleep/Standby. If they want to turn the Light Off they can use your program.. but they'd need to go into Settings to change that property first.
DaveShaw
20th October 2008, 10:19 AM
Dave, anything new with your program so far? Are you still working on it?
By the way, is it possible to make "Light Off" the default rather than "Sleep"? Because, most people will press the power button to put it into Sleep/Standby. If they want to turn the Light Off they can use your program.. but they'd need to go into Settings to change that property first.
Nothing new this weekend, had to help lay a garden.
I'll swap the default over in the next release.
Ta
Dave
Blowfish64
28th October 2008, 04:45 PM
Been over a week since last post, anything happening yet?
DaveShaw
28th October 2008, 04:47 PM
Been over a week since last post, anything happening yet?
I finally found some good C++ UI sample code last night so I am gonna try and throw up a Native C++ UI in the next few days.
Although the load speed of 0v01c on the my current ROM isn't too bad :)
Ta
Dave
Blowfish64
7th November 2008, 06:29 PM
How's this coming along?
Blowfish64
13th November 2008, 11:57 PM
So apparently, it's not :(
DaveShaw
14th November 2008, 12:01 AM
Oops sorry, I forgot to reply the other day.
I got side tracked, I'm not the great developer like Sunscape and A_C who can keep firing out updates. :)
I'll try and get some work done when I can.
Appoligies to all waiting a fast decent version.
Ta
Dave
Blowfish64
14th December 2008, 07:25 AM
So anything happen since last month?
Lancelot94
16th December 2008, 09:38 PM
Hi there,
This app is very promissing, I hope you'll get something going.
I love it.
sapateira
29th December 2008, 03:06 AM
Hi, thank for this great app.
I would just like to sugest a warning message with confirmation option (YES/NO) when you press shutodown or reset, inorder to prevent accidental screentaps when runing the app.
Regards
DaveShaw
29th December 2008, 03:09 AM
Hi, thank for this great app.
I would just like to sugest a warning message with confirmation option (YES/NO) when you press shutodown or reset, inorder to prevent accidental screentaps when runing the app.
Regards
Thanks for the feedback, I'll consider it if I ever make any progress. (I still need to spend some more time with C++) :p
EDIT:
Shutdown, should have a warning. It calls PowerOffWarning.exe on your phone, if this doesn't show a warning I don't know. I am still looking for a way to make my own shutdown process, but I think it is impossibe.
Ta
Dave
brack11
29th December 2008, 12:06 PM
hi I have hp 614c with wm6, downloaded you programm today and... no luck it fires exception when i try to shut down. I realized that my phone DOESNT HAVE poweroffwarning.exe file at all, I can still turn off the phone completele through pressing long time power button. I downloaded poweroffwarning.exe and put it to the windows folder, exception is not firing anymore, BUT phone just goes to sleep instead for shutting down, of course i get warning about data loss before, and I have to say yes, but phone goes to sleep. When I long press power button it still does shutdown, and shows dialogue but the sentence in original dialog is different from that in poweroffwarning.exe which makes me think there is yet another file on the system that replaced poweroffwarning.exe function. Do you have an idea how to find which file started when long press power button? :confused:
DaveShaw
29th December 2008, 10:36 PM
hi I have hp 614c with wm6, downloaded you programm today and... no luck it fires exception when i try to shut down. I realized that my phone DOESNT HAVE poweroffwarning.exe file at all, I can still turn off the phone completele through pressing long time power button. I downloaded poweroffwarning.exe and put it to the windows folder, exception is not firing anymore, BUT phone just goes to sleep instead for shutting down, of course i get warning about data loss before, and I have to say yes, but phone goes to sleep. When I long press power button it still does shutdown, and shows dialogue but the sentence in original dialog is different from that in poweroffwarning.exe which makes me think there is yet another file on the system that replaced poweroffwarning.exe function. Do you have an idea how to find which file started when long press power button? :confused:
If you run task manager (the dotfred one with a process list) before and after long pressing the power button you should see what the process is.
Ta
Dave
brack11
30th December 2008, 12:56 AM
Just tried to run task manager with pocesses tab here is a result:
Before long press:
taskmr
pword
cprog
vcdaemon
tman
poutlook
connmgr
services
shell32
gwes
device
filesys
nk
after long press I see warning dialog, without closing it, I press refresh button in proceses and see the following:
taskmgr
pword
cprog
vcdaemon
tman
poutlook
connmgr
services
shell32
qwes
device
filesys
nk
as you can see the processes are identical. But the power still goes off as it should. I'm perplexed...:confused:
But I oticed that during the long press, shell32.exe takes more CPU resources than usually. but if I try to click on this file in windows folder, the phone is hanging, only powerOff and powerOn helps.
DaveShaw
30th December 2008, 01:05 AM
Just tried to run task manager with pocesses tab here is a result:
Before long press:
snip
as you can see the processes are identical. But the power still goes off as it should. I'm perplexed...:confused:
No idea, might be something else in the device, I think each deveice has a different implementation becasue MS removed the API to do it, so the PowerOffWarning.exe actually tell's the HW to power off, so each device will need it's own copy.*
*Best guess work.
Ta
Dave
brack11
30th December 2008, 01:29 AM
N... the PowerOffWarning.exe actually tell's the HW to power off, so each device will need it's own copy.*
Yeah, as I say I tried one PowerOffWarning.exe from 4pda.ru (found only one there) but it would only suspend the phone.
What do you think about shell32.exe activities duringpoweroff though? could this function be inserted there? if so, and I cannot call it from the shortcut, how can I call it from that file? Or shell32 is kind of general library that was not designed for these purposes?
mzshortay
20th January 2009, 04:09 AM
Question, will this only work on the Kaiser, or will it possibly work on other phones as well?
I was thinking about trying this on my Fuze [Rapheal/Touch Pro]
DaveShaw
20th January 2009, 10:35 AM
Question, will this only work on the Kaiser, or will it possibly work on other phones as well?
I was thinking about trying this on my Fuze [Rapheal/Touch Pro]
It should work, the Graphics might be a bit off, but in theory it should work.
I still need to spend some time on the C++ version, sorry guys :(
Ta
Dave
nucentury08
25th February 2009, 06:01 PM
Hey I have the Touch pro And I installed Xdashutdown But the Shutdown button Wont shut down my phone the Softreset Works fine But not the Shutdown What do I do Thanks:cool:
DaveShaw
25th February 2009, 06:12 PM
Hey I have the Touch pro And I installed Xdashutdown But the Shutdown button Wont shut down my phone the Softreset Works fine But not the Shutdown What do I do Thanks:cool:
It just calls the PowerOffWarning.exe file in the \Windows Directory. Is that file there?
Ta
Dave
WatskeBart
25th February 2009, 10:07 PM
Great tool Dave!
I like this one much more than psShutXP. They should integrate this tool of yours in the Touch Pro Elite ROM (http://forum.xda-developers.com/showthread.php?t=471958) ;)
DaveShaw
26th February 2009, 12:50 AM
Great tool Dave!
I like this one much more than psShutXP. They should integrate this tool of yours in the Touch Pro Elite ROM (http://forum.xda-developers.com/showthread.php?t=471958) ;)
Thanks mate. Does it work OK on your TP as the last user reported it didn't?
Another feature maybe... raise an error when PowerOffWarning.exe is missing...:p
Dave
wolframio74
1st April 2009, 10:09 AM
i know its a little early for this but... can you make it skineable, using a image file like psshutxp, i want it in "spanish" so if is skineable i only need to edit the base image and put "shutdown = apagar" "reboot = reniciar" "sleep = suspender"... regards!
DaveShaw
1st April 2009, 11:41 AM
i know its a little early for this but... can you make it skineable, using a image file like psshutxp, i want it in "spanish" so if is skineable i only need to edit the base image and put "shutdown = apagar" "reboot = reniciar" "sleep = suspender"... regards!
I am planning on making it skinable, there are just not enough hours in my day.
Although I am hoping things might get a bit better soon.:)
I'll keep working on it when I can :o
Dave
djquick
1st April 2009, 05:55 PM
Looking forward to the new version. I wish I knew C++ but I was a bad kid which kept me out of the good schools:p.
DaveShaw
7th April 2009, 01:23 AM
I'm finally getting somewhere with the native one. I'm going to make it config file driven for now - I think - instead of having an options dialog.
Very basic Icon replacement skinning will be available from the off, as will an improved "Shutdown" algo.
I'll post a new D&H thread when I get a bit further. I'll probably do a beta here (because it's my quiet corner of xda, and D&H will probably get a little busy).:)
Thanks
Dave
djquick
7th April 2009, 04:19 AM
Sounds good Dave, looking forward to it.
NotATreoFan
7th April 2009, 04:38 AM
I'll post a new D&H thread when I get a bit further. I'll probably do a beta here (because it's my quiet corner of xda, and D&H will probably get a little busy).:)
A Mod plans to cross-post?!? Boy oh boy... if only I could ban YOU! :D:eek::rolleyes::cool:;):p
DaveShaw
7th April 2009, 11:17 AM
A Mod plans to cross-post?!? Boy oh boy... if only I could ban YOU! :D:eek::rolleyes::cool:;):p
This isn't even my post if you look :p
I just hijacked it.:D:D
Dave
DaveShaw
9th April 2009, 06:06 PM
Right, here we have the first C++ pre-alpha untested use at your-own-risk, blah de blah relaese.
Let's go through the points... :)
This was designed on QVGA screen so any higher and it'll bunch upto the top left.
Shutdown should work on all new HTC devices.... If it doesn't please post your device details and where I might find a ROM (if it's not a device on xda) and I'll look at it when I can (this isn't my #1 priority though, but I'll look at it at some point).
There are two versions:
Sleep = Performs a Device Sleep (i.e. short press power button)
Lights Out = Turns off the display (like S2P does when music is playing).
If you wanna hack the graphics edit the files in the \Program Files\xdaShutdown Folder.
You must keep the images the same size for now.
I am not implementing verioning correctly in the cab files, so always un-install before installing.
The next job is to introduce a config file that will let you specify more options for skinning and a config file for the app's options.
I am calling this R1 release
EDIT:
Re-uploaded CABs with the correct %InstallDir% :o
Ta
Dave
gigafun
10th April 2009, 02:24 PM
Right, here we have the first C++ pre-alpha untested use at your-own-risk, blah de blah relaese.
Let's go through the points... :)
This was designed on QVGA screen so any higher and it'll bunch upto the top left.
Shutdown should work on all new HTC devices.... If it doesn't please post your device details and where I might find a ROM (if it's not a device on xda) and I'll look at it when I can (this isn't my #1 priority though, but I'll look at it at some point).
There are two versions:
Sleep = Performs a Device Sleep (i.e. short press power button)
Lights Out = Turns off the display (like S2P does when music is playing).
If you wanna hack the graphics edit the files in the \Program Files\xdaShutdown Folder.
You must keep the images the same size for now.
I am not implementing verioning correctly in the cab files, so always un-install before installing.
The next job is to introduce a config file that will let you specify more options for skinning and a config file for the app's options.
I am calling this R1 release
Ta
Dave
Hi Dave!
Thanks for your work.
I've installed it immediately, and had some problems. First my device freezed after install, had to softreset. Then it was ok, but no images in the program. Otherwise power off and softreset is working and it's much more faster then the old one.
I'm using Garmin DK.3. ROM.
Thanks
Gigafun
DaveShaw
10th April 2009, 05:52 PM
Hi Dave!
Thanks for your work.
I've installed it immediately, and had some problems. First my device freezed after install, had to softreset. Then it was ok, but no images in the program. Otherwise power off and softreset is working and it's much more faster then the old one.
I'm using Garmin DK.3. ROM.
Thanks
Gigafun
Not sure about the freeze. The CAB contains 4 images and an exe.
If the program doesn't show images, have a look in \Program Files\xdaShutdown\ for 4 images called Sleep, Restart, Shutdown and Cancel.
Dave
gigafun
10th April 2009, 10:26 PM
Not sure about the freeze. The CAB contains 4 images and an exe.
If the program doesn't show images, have a look in \Program Files\xdaShutdown\ for 4 images called Sleep, Restart, Shutdown and Cancel.
Dave
That's the problem. I think you set a wrong path in the cab-maker. On my Kaiser it's installed into "\Program Files\DaveShaw\Your Application Name".
Gigafun
ps:
I've changed the path and it's working perfectly.
I can upload it if you don't mind.
Thanks for your work.
DaveShaw
10th April 2009, 10:27 PM
That's the problem. I think you set a wrong path in the cab-maker. On my Kaiser it's installed into "\Program Files\DaveShaw\Your Application Name".
Gigafun
Doh, I though I fixed that. I'll double check both CABs.
Dave
DaveShaw
10th April 2009, 10:31 PM
Doh, I though I fixed that. I'll double check both CABs.
Dave
Re-uploaded CABs with the correct %InstallDir% :o
Ta
Dave
Major_Sarcasm
16th April 2009, 02:18 PM
What a great app :) Thank you. Works great, no confirmation for shutdown, sleep is fine and SR works too.
I've attached a screen of what it looks like on my Touch HD. If you ever find the time, a slightly larger or WVGA version would be sweet ;)
I assume that I can't just make the images bigger as the screen taps would be off?
Cheers fella.
DaveShaw
16th April 2009, 02:24 PM
What a great app :) Thank you. Works great, no confirmation for shutdown, sleep is fine and SR works too.
I've attached a screen of what it looks like on my Touch HD. If you ever find the time, a slightly larger or WVGA version would be sweet ;)
I assume that I can't just make the images bigger as the screen taps would be off?
Cheers fella.
You can't make 'em bigger in R1.
But I have already implemented some changes to draw the buttons based off the image sizes. Now I need to write config file support so that the images can be drawn to user specified locations (otherwise the buttons will still have the same top-left anchor). I know someone with a Diamond and a HD so once I have a config file system written I'll create some themes for QVGA, VGA and WGVA).
Ta
Dave
NotATreoFan
16th April 2009, 09:35 PM
You can't make 'em bigger in R1.
But I have already implemented some changes to draw the buttons based off the image sizes. Now I need to write config file support so that the images can be drawn to user specified locations (otherwise the buttons will still have the same top-left anchor). I know someone with a Diamond and a HD so once I have a config file system written I'll create some themes for QVGA, VGA and WGVA).
Ta
Dave
I'll happily test it for you on my Touch Pro...
Major_Sarcasm
16th April 2009, 11:37 PM
You can't make 'em bigger in R1.
But I have already implemented some changes to draw the buttons based off the image sizes. Now I need to write config file support so that the images can be drawn to user specified locations (otherwise the buttons will still have the same top-left anchor). I know someone with a Diamond and a HD so once I have a config file system written I'll create some themes for QVGA, VGA and WGVA).
Ta
Dave
Cool beans. Thanks. I'll keep an eye on this thread :)
Link278
17th April 2009, 09:02 AM
I didnt read through all of the pages bu tdid read for a while so im not sure if anyone mentioned this but this also looks like it would be a nice replacement:
http://forum.xda-developers.com/showthread.php?t=462361
Turley
17th April 2009, 01:46 PM
App looks nice,
although all im after though is an app that will power off the display so i can put a shortcut in my programs menu, anyone know of a way?
EDIT: I already use psshutxp but i hate having to hold the power button for 4 seconds before the menu appears to shut off the display, just the "Turn off display icon" in the start menu would be nice
leak73
30th April 2009, 07:32 AM
I am wondering if there is a way so that I could assign a button so that a short press will make the device sleep, and a long press for a reset. Is there a command that can be added to a shortcut to this program?
DaveShaw
30th April 2009, 11:15 AM
I am wondering if there is a way so that I could assign a button so that a short press will make the device sleep, and a long press for a reset. Is there a command that can be added to a shortcut to this program?
If I added command line support (which I plan to do). Then you could use AEButtonPlus to accomplish this.
@All,
Sorry for the lack of updates, there is a problem with the XML parser I am using that the author is looking in to.
Dave
dirtydizzle
5th May 2009, 11:04 PM
Very nice work.. I'll be subscribed!!
l3v5y
11th May 2009, 02:10 PM
Not sure if this has been spotted yet, but with the "new" finger friendly PowerOffWarning from the Topaz/Rhodium
#\Windows\PowerOffWarning.exe SILENT_MODE
will shut the device down without a warning shown...
DaveShaw
11th May 2009, 02:15 PM
Not sure if this has been spotted yet, but with the "new" finger friendly PowerOffWarning from the Topaz/Rhodium
#\Windows\PowerOffWarning.exe SILENT_MODE
will shut the device down without a warning shown...
Thanks mate, I'll try it on my Kaiser and if there arn't any problems I'll call it with the extra param on all devices.
I am calling the shutdown DLL, if that doesn't exsist I call poweroffwarning, and if that doesn't exist, I show a message box saying "I give up" :p
P.S. this XML parser is really p'ing me off now, I'm off to bug some of the senior devs on here... :D
Dave
l3v5y
11th May 2009, 04:35 PM
Thanks mate, I'll try it on my Kaiser and if there arn't any problems I'll call it with the extra param on all devices.
I am calling the shutdown DLL, if that doesn't exsist I call poweroffwarning, and if that doesn't exist, I show a message box saying "I give up" :p
P.S. this XML parser is really p'ing me off now, I'm off to bug some of the senior devs on here... :D
Dave
What XML parser is it?
DaveShaw
11th May 2009, 04:42 PM
What XML parser is it?
http://www.codeproject.com/KB/recipes/FlexibleParser.aspx
I have a post on his forum, but he needs to get his phone back before he can debug it.:rolleyes:
Ta
Dave
l3v5y
11th May 2009, 06:04 PM
http://www.codeproject.com/KB/recipes/FlexibleParser.aspx
I have a post on his forum, but he needs to get his phone back before he can debug it.:rolleyes:
Ta
DaveOh cool...
I've been using TinyXML for some XML things, though that seems a far easier to use system... I wish I'd seen that! :S
btonetbone
1st July 2009, 08:17 AM
Right, here we have the first C++ pre-alpha untested use at your-own-risk, blah de blah relaese.
Let's go through the points... :)
This was designed on QVGA screen so any higher and it'll bunch upto the top left.
Shutdown should work on all new HTC devices.... If it doesn't please post your device details and where I might find a ROM (if it's not a device on xda) and I'll look at it when I can (this isn't my #1 priority though, but I'll look at it at some point).
There are two versions:
Sleep = Performs a Device Sleep (i.e. short press power button)
Lights Out = Turns off the display (like S2P does when music is playing).
If you wanna hack the graphics edit the files in the \Program Files\xdaShutdown Folder.
You must keep the images the same size for now.
I am not implementing verioning correctly in the cab files, so always un-install before installing.
The next job is to introduce a config file that will let you specify more options for skinning and a config file for the app's options.
I am calling this R1 release
EDIT:
Re-uploaded CABs with the correct %InstallDir% :o
Ta
Dave
This is amazing and exactly what I was looking for! The Shutdown feature works perfectly on my Titan. I noticed that the icon is blank for this, though. Are you still working on this?
DaveShaw
1st July 2009, 10:25 AM
This is amazing and exactly what I was looking for! The Shutdown feature works perfectly on my Titan. I noticed that the icon is blank for this, though. Are you still working on this?
Yes I am working on it most nights.
I think it's getting there now.
Ta
Dave
DaveShaw
15th July 2009, 01:22 AM
An update for those of you stragler's that are still following this...
My C++ version is working.
Features are:
Fully Skinable (All 4 Buttons, BG Image or BG Solid Colour)
Command line support
An Icon (Big deal if you know me ;))
QVGA and WVGA icon set. (I'll do a VGA one before release) - They are poor quality graphics so I'll see if round up some fancy skinners to make this app worthwile.
Partial Full Screen Support.
I'm now just trying to tidy up the code, add some features to make the app complete (for example, it still has the C++ hello world buttons at the bottom).
But it's getting there :).
Dave
btonetbone
15th July 2009, 01:35 AM
An update for those of you stragler's that are still following this...
My C++ version is working.
Features are:
Fully Skinable (All 4 Buttons, BG Image or BG Solid Colour)
Command line support
An Icon (Big deal if you know me ;))
QVGA and WVGA icon set. (I'll do a VGA one before release) - They are poor quality graphics so I'll see if round up some fancy skinners to make this app worthwile.
Partial Full Screen Support.
I'm now just trying to tidy up the code, add some features to make the app complete (for example, it still has the C++ hello world buttons at the bottom).
But it's getting there :).
Dave
Great! I'm looking forward to it. This is going to replace psShutXP in my bag of tricks. :-)
Lancelot94
17th July 2009, 09:59 AM
I love this app. It's in my Diamond2 since the beginning and I used it on my Cruise
I am trully waiting for the release for VGA :)
Thank you.
DaveShaw
3rd August 2009, 11:18 PM
Finally... it's out here : http://forum.xda-developers.com/showthread.php?t=544016
Dave
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.