FORUMS

ZenFone 2 Lolliflash and ZenPower Giveaway!

We recently did an in-depth review of the Asus Zenfone 2 but one of the things people may … more

OnePlus 2 Forums: Discuss Everything About The OP2!

Now that the OnePlus 2 has been officially unveiled and that we have had close-up … more

Intel & Micron Announce “Revolutionary” Storage Tech

Intel & Micron have announced 3D Xpoint technology—”the … more

Google Now Interfaces With Third-Party Messaging Apps

Google has announced that Ok Google voice commands can now be used to send … more

[APP] xdaShutdown v1.01 [20 AUG 09] - A Skinnable Shutdown App - All Resolutions

8,712 posts
Thanks Meter: 407
 
By DaveShaw, Retired Senior Moderator + Wiki Bureaucrat on 3rd August 2009, 09:58 PM
Post Reply Subscribe to Thread Email Thread

Info:
A fully skinnable (see post #2) shutdown application that asofiker asked me to come up with a long time ago and I've finally got it finished. It's written in Native Win32 C++, so the load speed is PDQ.

My skinning skills are rubbish so any one interested in making this look nice, please post and I'll add your graphics.


Screens (WVGA theme on my TP2):


Features:
  • Shutdown actually works.*
  • Fully skinnable, will work in any resolution.
  • Full screen mode.
  • Sleep / Light's out modes.
  • Command Line (see "Usage").
  • Map to Long press.
*Should work on HTC devices since the Kaiser, I'm open to try and add support to non HTC devices. PM me if you can help.

Usage (Command line):
You can call xdaShutdown command line as follows:
Code:
xdaShutdown /restart [/warn] - Soft resets the device.
xdaShutdown /shutdown [/warn] - Power off the device.
xdaShutdown /sleep - Put the device in Sleep mode.
xdaShutdown /lightsout - Turn off the screen.

/warn - issues a warning before performing the action.
Change log:
Download full change log

1.01
-[BUG] Fixed command line bugs (would only shutdown)
-[TWK] Replaced Kernel IO Control with ExitWindowsEx(). This should ensure settings are saved upon restart / shutdown.
-[TWK] The Sleep / Light's out option simply overrides the action of the Sleep button to light's out - even if you have a seperate lights out button.
-[NEW] Ability to create a Long_press.lnk shortcut in \Windows\. Existing shortcut is backed up and restored if needed when removing the shortcut.
-[NEW] Various XML Changes, If you're new to skinning, just see post #2 and read up. If you're an existing skinner and want to see what's changed, read the full change log.

1.00
-Initial Release

TODO:
Known Issues:
  1. Actions in the XML are case sensitive.
  2. Remove 1px border around the BG.
  3. Shutdown Support on the following devices: Atom Life, Omnia (II?), Moto A3100 (WM 20780), Toshiba G900, Asus P320, Flame, KS20, Magician, Palm Treo Pro 850, Asus P527, Acer M900. (Anyone who knows how to fully power off these devices, let me know).

Thanks
-Chourdakis Michael for his XML Lib.
-asofiker for the QVGA graphics.
-Olipro, cmonex, l3v5y and no2chem for general coding help.
-fards for the long press work around (until I get it in the app).
-All the Skinners

Downloads (WWE):
I have uploaded 3 versions (all with crappy graphics) for QVGA, VGA and WGVA.
There's also a Exe only, for those that don't want to lose their skin .

Other Languages:
-ESN v1.01
-GER v1.01
.
Attached Files
File Type: cab xdaShutdown 1.01 - Exe.cab - [Click for QR Code] (82.7 KB, 3877 views)
File Type: cab xdaShutdown 1.01 - QVGA.cab - [Click for QR Code] (276.9 KB, 8250 views)
File Type: cab xdaShutdown 1.01 - VGA.cab - [Click for QR Code] (248.9 KB, 5956 views)
File Type: cab xdaShutdown 1.01 - WVGA.cab - [Click for QR Code] (429.8 KB, 21692 views)
Last edited by DaveShaw; 31st May 2010 at 11:06 PM. Reason: changed spelling
The Following User Says Thank You to DaveShaw For This Useful Post: [ View ]
 
 
3rd August 2009, 09:58 PM |#2  
DaveShaw's Avatar
OP Retired Senior Moderator + Wiki Bureaucrat
Flag Huddersfield
Thanks Meter: 407
 
More
[APP] xdaShutdown v1.01 [20 AUG 09] - A Skinnable Shutdown App - All Resolutions
About:
If you can think of a (serious) better way of implementing skinning PM me (spare the thread) and I'm happy to discuss.

Images
Create your button images with a fuschia (255 R, 0 G, 255 B) background. This part of the image won't be rendered.

Place the "Up" and "Down" parts of the image in exactly half of the image. Left half is up, right half is down.

Sample images are in the CABs in Post #1.

Layout (Theme.xml)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xdaShutdownTheme>
<button>
    <name>sleep</name>
    <xPos>24</xPos>
    <yPos>4</yPos>
    <action>sleep</action>
  </button>
  <button>
    <name>restart</name>
    <xPos>24</xPos>
    <yPos>74</yPos>
    <action>restart</action>
  </button>
  <button>
    <name>shutdown</name>
    <xPos>24</xPos>
    <yPos>144</yPos>
    <action>shutdown</action>
  </button>
  <button>
    <name>cancel</name>
    <xPos>180</xPos>
    <yPos>214</yPos>
    <action>cancel</action>
  </button>
  <button>
    <name>lightsout</name>
    <xPos>24</xPos>
    <yPos>274</yPos>
    <action>lightsout</action>
  </button>
  <background>
    <color>FFFFFF</color>
  </background>
  <fullscreen>false</fullscreen>    
  <landscape>
    <button>
      <name>sleepL</name>
      <xPos>24</xPos>
      <yPos>4</yPos>
      <action>sleep</action>
    </button>
    <button>
      <name>restartL</name>
      <xPos>24</xPos>
      <yPos>74</yPos>
      <action>restart</action>
    </button>
    <button>
      <name>shutdownL</name>
      <xPos>24</xPos>
      <yPos>144</yPos>
      <action>shutdown</action>
    </button>
    <button>
      <name>cancelL</name>
      <xPos>180</xPos>
      <yPos>214</yPos>
      <action>cancel</action>
    </button>
    <button>
      <name>lightsoutL</name>
      <xPos>24</xPos>
      <yPos>274</yPos>
      <action>lightsout</action>
    </button>
    <background>
      <color>FF0000</color>
    </background>
    <fullscreen>false</fullscreen>
  </landscape>
</xdaShutdownTheme>
The button part should be obvious. The background part might be a tad trickier. If you want to use background.png as the background, set "useImage" to "background". If it's not specified, then you can specify a background colour in RRGGBB format in "color". If neither are there, it will be white.

Fullscreen, means that the top bar will be hidden.

I've attached the xsd for theme if any of you are XML geeks like me
Attached Files
File Type: zip xdaShutdownTheme.zip - [Click for QR Code] (994 Bytes, 3446 views)
Last edited by DaveShaw; 20th August 2009 at 09:52 PM.
3rd August 2009, 09:59 PM |#3  
DaveShaw's Avatar
OP Retired Senior Moderator + Wiki Bureaucrat
Flag Huddersfield
Thanks Meter: 407
 
More
Skinning
If you make me some better skins, I'll post some previews here, but I have so much interest I've started to remove some, so have a look through the thread also .

Please post the the target resolution, the 5 (or 4) button images and the theme XML in a CAB to install into %programfiles%\xdaShutdown.

QVGA

Download - cris_rowlands


Download - cris_rowlands


Download - cris_rowlands


Download - cris_rowlands


Download - cris_rowlands (Left = Restart, Middle = Shut Down, Right = Sleep/light, Bottom = Cancel)


Download - cris_rowlands


Download - cris_rowlands


Download / Download - cris_rowlands


Download - Phonatic


Download - Phonatic


Download - gullum


Download - borealcool
Last edited by DaveShaw; 7th September 2009 at 03:08 PM.
3rd August 2009, 09:59 PM |#4  
DaveShaw's Avatar
OP Retired Senior Moderator + Wiki Bureaucrat
Flag Huddersfield
Thanks Meter: 407
 
More
Themes

Download / Download / Download - cris_rowlands


Download - Phonatic


Download - Phonatic


More Colours / Back grounds here - Phonatic


Download - chris10230


Download - chris10230


Download - Phonatic
Attached Thumbnails
Click image for larger version

Name:	ALL.jpg
Views:	84866
Size:	25.1 KB
ID:	213768  
Last edited by DaveShaw; 24th August 2009 at 09:40 PM. Reason: More themes
3rd August 2009, 09:59 PM |#5  
DaveShaw's Avatar
OP Retired Senior Moderator + Wiki Bureaucrat
Flag Huddersfield
Thanks Meter: 407
 
More
VGA

Download - gullum


Download (EN) - voyd
Download (FR) -voyd


Download - cris_rowlands


Download / Download / Download - louie1215 (ported)


Download - Peaster111

WVGA

Download / Download (with portrait and landscape) - peterbonge


Download (EN) - voyd
Download (FR) - voyd


Download (w/Landscape) - FireBird4


Download - Phonatic


Download - arturobandini

WQVGA

Download - borealcool


Download (EN) - julian76 (ported)


Download - ytsejam_



Download - taospirit
Attached Thumbnails
Click image for larger version

Name:	VGAs.jpg
Views:	79578
Size:	23.9 KB
ID:	217492  
Last edited by DaveShaw; 8th September 2009 at 11:18 PM.
3rd August 2009, 10:22 PM |#6  
Philux's Avatar
Senior Member
Flag Fort Leonard Wood
Thanks Meter: 50
 
More
Thanks bro! Looks great! Will give it a go.
3rd August 2009, 10:54 PM |#7  
Senior Member
Thanks Meter: 87
 
More
Awesome, thanks! This is definitely going to replace psShutXP for me. Shutdown actually works!

Great work.
Ivan
3rd August 2009, 11:00 PM |#8  
drmidnight's Avatar
Member
Thanks Meter: 3
 
More
Just got a break at work so I decided to check out some xda and I saw this. I made three different skins that are nothing more than a mockup and I don't really have the time to make them into an actual skin, but you are welcome to the layered psd.



3rd August 2009, 11:03 PM |#9  
ai6908's Avatar
Senior Member
Flag Land of Lincoln
Thanks Meter: 268
 
Donate to Me
More
Great! I use it my ROM...thanks for this awesome tool...
3rd August 2009, 11:05 PM |#10  
DaveShaw's Avatar
OP Retired Senior Moderator + Wiki Bureaucrat
Flag Huddersfield
Thanks Meter: 407
 
More
Quote:
Originally Posted by drmidnight

Just got a break at work so I decided to check out some xda and I saw this. I made three different skins that are nothing more than a mockup and I don't really have the time to make them into an actual skin, but you are welcome to the layered psd.

Thanks, but I'm really bad at photo-shopping. That's why my graphics are sooo bad.

Dave
3rd August 2009, 11:08 PM |#11  
Senior Member
Thanks Meter: 239
 
More
Great tool,
If you include the option to run with power button will be perfect.
Thanks

Read More
Post Reply Subscribe to Thread

Tags
shutdown, skinnable
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes