Jump to content


Photo

Power-Off Software

- - - - -

  • Please log in to reply
12 replies to this topic

#1
adzman808

adzman808

    Diehard

  • Members
  • PipPipPipPip
  • 472 posts
  • Location:Milton Keynes
  • Devices:Dell Streak TG01 HD2 CBR600RR7
  • Twitter:@adzman808
Hi Guys,

i've been looking at adding a soft power off button & (as you do) i've been looking at xda to download something

i've found one i like... a very natty looking, skinable UI by a chap Called Dave Shaw (attached)

trouble is although the sleep / restart buttons work great, the shut down button doesn't work !!!

i had a look in the registry, but i can't see an easy fix....

anyone got any ideas?

Cheers
Adam

Attached Files


Edited by adzman808, 30 January 2010 - 11:17 AM.

  • 0
===============================================================================

Cheers


- Toshiba TG01
- HTC HD2
- Dell Streak
- CBR600RR7


such a noob, i'm greener than the android icon!!

#2
kevinpwhite

kevinpwhite

    Regular

  • Members
  • PipPip
  • 63 posts
  • Gender:Male
  • Location:UK
  • Devices:Toshiba TG01, e830, HTC 710
Adam,

There is an app in the \windows directory called gwes.exe

If you create a shortcut to this and place on the desktop then you can Shutdown with one press. Alternatively if running Mobile Shell, place the initial shortcut in ..\windows\Start Menu folder then you will be able to create a secondary one in Mobile Shell to complement the built-in Widget for Soft Reset.

If David Shaw can create a modified version of his app with that as the target file from his Shutdown button, the XDAShutdown should work absoluetly fine on the TG01. I thin is simply that on HTC devices there is a differently named .exe doing the same job.

Out of interest, SBSH iLauncher has these functions built in to its 'task manager' including a proper 'close' button in place of the usual winmo version which simply minimises. That works OK on both old Pocket PC devices and the TG01 so I suspect can access a lower code level rather than targetting specific .exe files like this.

>> EDIT: This does work - but apparently only some of the time. Evidently needs a bit more refinement to be 100%, but is clearly in the right direction. I have also mailed the original developer of iLauncher to ask if he can clarify what 'hooks' he used into the operating system. <<


Regards,

Kevin

Edited by kevinpwhite, 31 January 2010 - 03:18 PM.

  • 0

#3
adzman808

adzman808

    Diehard

  • Members
  • PipPipPipPip
  • 472 posts
  • Location:Milton Keynes
  • Devices:Dell Streak TG01 HD2 CBR600RR7
  • Twitter:@adzman808
Hi Kevin,

cheers - i tried it, but tbh i'm sure if its shutting down or crashing as it doesn't shut down as such, its like just taking the battery out!!

in the registry there's this... what do you reckon, shortcut reading something like = gwes.exe -withaswitch (see below)

[HKEY_LOCAL_MACHINE\Software\Toshiba\PowerOff]
"ShutDownScreenDLL"="ScreenAnimation.dll"
"LowBatter Command Line"="Toshiba-PowerOff-LowBatter"
"Normal Command Line"="Toshiba-PowerOff-Normal"
"Process Name"="\\Windows\\PowerOffHint.exe"
"Enable PowerOff"=dword:00000001


cheers
Adam

  • 0
===============================================================================

Cheers


- Toshiba TG01
- HTC HD2
- Dell Streak
- CBR600RR7


such a noob, i'm greener than the android icon!!

#4
kevinpwhite

kevinpwhite

    Regular

  • Members
  • PipPip
  • 63 posts
  • Gender:Male
  • Location:UK
  • Devices:Toshiba TG01, e830, HTC 710

Hi Kevin,

cheers - i tried it, but tbh i'm sure if its shutting down or crashing as it doesn't shut down as such, its like just taking the battery out!!



Adam,

I think I have now solved properly. It is the files we were looking at (power-off hint.exe and gwes.exe), but it requires a shortcut to the first with the other specified as an argument. That works, but leaves an ugly icon; I have used SK Shortcut Mgr to reassign the gwes.exe icon so now seems to be OK.

Can you check the attached shortcut and see if it works OK for you please ? If you place the shortcut in \windows\startup\ and then access from eg SPB MS it should display correctly with the red circle and white cross symbol.

Action is identical to the sequence when you press the physical power button to shutdown (including the unwanted activation of the SPB MS dialogue box).

Regards,

Kevin

Attached Files


Edited by kevinpwhite, 07 February 2010 - 11:45 AM.

  • 0

#5
adzman808

adzman808

    Diehard

  • Members
  • PipPipPipPip
  • 472 posts
  • Location:Milton Keynes
  • Devices:Dell Streak TG01 HD2 CBR600RR7
  • Twitter:@adzman808

Adam,

I think I have now solved properly. It is the files we were looking at (power-off hint.exe and gwes.exe), but it requires a shortcut to the first with the other specified as an argument. That works, but leaves an ugly icon; I have used SK Shortcut Mgr to reassign the gwes.exe icon so now seems to be OK.

Can you check the attached shortcut and see if it works OK for you please ? If you place the shortcut in \windows\startup\ and then access from eg SPB MS it should display correctly with the red circle and white cross symbol.

Action is identical to the sequence when you press the physical power button to shutdown (including the unwanted activation of the SPB MS dialogue box).

Regards,

Kevin


cheers Kevin

thats brilliant & it works great.

i had to put it in \win\strt menu\progs to dispaly where i wanted, but the icon display is exactly as you described & fits in well with the other icons...

obviously i was curious how you managed this, so i had a look at your shortcut

can i ask (what's probably) a (stupid) question?

in your shortcut

61#\Windows\PowerOffHint.exe gwes.exe?\Storage Card\gwes.exe,-16

why does it need the

"Storage Card\gwes.exe,-16"

storage card part?

cheers & thanks again that's great

Adam

  • 0
===============================================================================

Cheers


- Toshiba TG01
- HTC HD2
- Dell Streak
- CBR600RR7


such a noob, i'm greener than the android icon!!

#6
kevinpwhite

kevinpwhite

    Regular

  • Members
  • PipPip
  • 63 posts
  • Gender:Male
  • Location:UK
  • Devices:Toshiba TG01, e830, HTC 710

cheers Kevin

thats brilliant & it works great.

i had to put it in \win\strt menu\progs to dispaly where i wanted, but the icon display is exactly as you described & fits in well with the other icons...

obviously i was curious how you managed this, so i had a look at your shortcut

can i ask (what's probably) a (stupid) question?

in your shortcut

61#\Windows\PowerOffHint.exe gwes.exe?\Storage Card\gwes.exe,-16

why does it need the

"Storage Card\gwes.exe,-16"

storage card part?

cheers & thanks again that's great

Adam



Adam,

Good question - not daft at all ;) I just experimented last night and hit on the idea that one app was 'calling' the other, so I tried initially editing the existing shortcut I had to PowerOffHint.exe by adding gwes.exe as an argument. And it worked !

The next step was to use SK Shortcut Manager to re-assign the icon from gwes.exe in the ..\windows\ directory to the shortcut in place of the native one like three kiddies wooden bricks.

Just now I'm not quite certain why it is showing Storage Card as a path, but the \gwes.exe,-16 bit is telling it the correct Icon to incorporate - I need to have another closer look and check. Might need to tweak the shortcut again, but I'm pleased to have found a 'proper' solution.

Best regards,

Kevin

  • 0

#7
adzman808

adzman808

    Diehard

  • Members
  • PipPipPipPip
  • 472 posts
  • Location:Milton Keynes
  • Devices:Dell Streak TG01 HD2 CBR600RR7
  • Twitter:@adzman808
well on the 1 hand if aint broke...

but i just tried deleting the

storagecard\

part of the shortcut and it still works ;)

thanks again - very happy with that

PS whats the 61# for?

cheers
adam

  • 0
===============================================================================

Cheers


- Toshiba TG01
- HTC HD2
- Dell Streak
- CBR600RR7


such a noob, i'm greener than the android icon!!

#8
kevinpwhite

kevinpwhite

    Regular

  • Members
  • PipPip
  • 63 posts
  • Gender:Male
  • Location:UK
  • Devices:Toshiba TG01, e830, HTC 710

PS whats the 61# for?


I think that every Shortcut on the device has a unique ID and that is where the 61# comes in. Both that and the additonal string containing the replacement Icon source were instered automatically by SK Shortcut Mgr. Somewhere I used to have a tutorial on the finer points of Shortcut syntax - if I can find it again I'll post it for reference.

Regards,

Kevin

  • 0

#9
adzman808

adzman808

    Diehard

  • Members
  • PipPipPipPip
  • 472 posts
  • Location:Milton Keynes
  • Devices:Dell Streak TG01 HD2 CBR600RR7
  • Twitter:@adzman808
ah i see...

i don't run SK or anything - i just use a combo of blind luck, mis-placed faith in my own abilities & the excellent advice i get from this forum !!

i'd be interested to read the short-cut syntax stuff...

thanks yet again ;)

  • 0
===============================================================================

Cheers


- Toshiba TG01
- HTC HD2
- Dell Streak
- CBR600RR7


such a noob, i'm greener than the android icon!!

#10
kevinpwhite

kevinpwhite

    Regular

  • Members
  • PipPip
  • 63 posts
  • Gender:Male
  • Location:UK
  • Devices:Toshiba TG01, e830, HTC 710

ah i see...

i don't run SK or anything - i just use a combo of blind luck, mis-placed faith in my own abilities & the excellent advice i get from this forum !!

i'd be interested to read the short-cut syntax stuff...

thanks yet again ;)


Adam,

I've unearthed the references I was thinking of - it's back into the mists of PPC2002 ! Still in place on the Microsoft pages - all sorts of stuff which is still relevant... the second article shows examples of similar strings to that we've been playing with, including the ID# at the beginning.

Creating Shortcutt to Your Apps and Files

Creating Shortcuts to Feature Settings

I've also attached a file with a whole stack of shortcuts included which can be used as the basis for adaptaion - including various Control Panel applets. Not sure how these will work under WinMo 6.5 compared to ealier OSs, but maybe worth a look.

Regards,

Kevin

Attached Files


Edited by kevinpwhite, 09 February 2010 - 10:27 PM.

  • 0

#11
kevinpwhite

kevinpwhite

    Regular

  • Members
  • PipPip
  • 63 posts
  • Gender:Male
  • Location:UK
  • Devices:Toshiba TG01, e830, HTC 710
Just a small piece of additional information around this area.... it appears that the gwes.exe application is a system processe whic controls the device's touch screen / hardware interface. This accounts for the sudden 'stop' effect rather than controlled closedown when experimenting to figure how to replicate the hardware Power button effect with a software button...

Regards,

Kevin

  • 0

#12
bsnguy

bsnguy

    Newbie

  • Members
  • Pip
  • 29 posts
  • Devices:TG01
Thanks for all the hints, here... if you simply want to shutdown the phone, with no prompts, make a link like this:

52#\Windows\PowerOffHint.exe Toshiba-PowerOff-LowBatter

When you run that link, it just shuts down. What I wanted!

Thanks, all

  • 0

#13
mstealth

mstealth

    Newbie

  • Members
  • Pip
  • 4 posts

Thanks for all the hints, here... if you simply want to shutdown the phone, with no prompts, make a link like this:

52#\Windows\PowerOffHint.exe Toshiba-PowerOff-LowBatter

When you run that link, it just shuts down. What I wanted!

Thanks, all


Thanks for this valuable hint.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users