New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
SkyKOG
Old
(Last edited by SkyKOG; 19th October 2012 at 04:51 PM.) Reason: Added "teh file remover" to remove effects of "teh file" :)
#1  
SkyKOG's Avatar
Senior Member - OP
Thanks Meter 128
Posts: 135
Join Date: Mar 2012
Location: India
Talking Shutdown & Restart on Right Click ...

Well copy this in notepad and save as a .reg file on execution u'll get right Shutdown, Restart, Lock & Sleep in your right click context menu ... avoiding the long hassle of going to the charms bar ....



Flyout Version ...



Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Lock Computer]
"icon"="shell32.dll,-325"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Sleep Computer]
"icon"="shell32.dll,-331"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer]
"icon"="shell32.dll,-221"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Shutdown Computer]
"icon"="shell32.dll,-329"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Lock Computer\command]
@="Rundll32 User32.dll,LockWorkStation"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Sleep Computer\command]
@="rundll32.exe powrprof.dll,SetSuspendState 0,1,0"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer\command]
@="shutdown.exe -r -t 00 -f"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Shutdown Computer\command]
@="shutdown.exe -s -t 00 -f"
PS : Attached the .reg file too for lazy ppl :P ...
Hope i could help ...

Update : Added Sleep And Lock Options ... And Flyout Version(Credits : Vishal & Leomate)

Regards
Attached Files
File Type: rar teh file.rar - [Click for QR Code] (359 Bytes, 3942 views)
File Type: zip Turn Off Flyout.zip - [Click for QR Code] (1.2 KB, 3156 views)
File Type: rar teh file remover.rar - [Click for QR Code] (223 Bytes, 2638 views)
The Following 88 Users Say Thank You to SkyKOG For This Useful Post: [ Click to Expand ]
 
duk3r
Old
#2  
Senior Member
Thanks Meter 16
Posts: 272
Join Date: Jan 2011
dude you rock! At last no more charm bar!
Liveplace.Gr
Technology, Mobiles/Tablets, Gadgets
Greek Android Developers (GanDevs)
The Following User Says Thank You to duk3r For This Useful Post: [ Click to Expand ]
 
SkyKOG
Old
#3  
SkyKOG's Avatar
Senior Member - OP
Thanks Meter 128
Posts: 135
Join Date: Mar 2012
Location: India
Quote:
Originally Posted by duk3r View Post
dude you rock! At last no more charm bar!
Glad u liked ...
The Following User Says Thank You to SkyKOG For This Useful Post: [ Click to Expand ]
 
TotalD3str4ct
Old
#4  
TotalD3str4ct's Avatar
Member
Thanks Meter 7
Posts: 45
Join Date: Oct 2010
Is it possible to put these into the menu that appears by right clicking in the bottom left corner?
 
SkyKOG
Old
#5  
SkyKOG's Avatar
Senior Member - OP
Thanks Meter 128
Posts: 135
Join Date: Mar 2012
Location: India
Quote:
Originally Posted by TotalD3str4ct View Post
Is it possible to put these into the menu that appears by right clicking in the bottom left corner?
Umm ... this is much simple i felt as u can right click conveniently anywhere on the desktop and switch off ...no need for the long process of going through the charms bar or even the metro tiles ...
 
the_scotsman
Old
#6  
the_scotsman's Avatar
Assistant Forum Admin / Moderator Committee / XDA News Writer
Thanks Meter 6253
Posts: 20,413
Join Date: Jan 2006
Location: NSW, Australia Likes: Anything alcoholic or caffeinated

 
DONATE TO ME
Great work! Thanks for this!
The Following User Says Thank You to the_scotsman For This Useful Post: [ Click to Expand ]
 
SkyKOG
Old
#7  
SkyKOG's Avatar
Senior Member - OP
Thanks Meter 128
Posts: 135
Join Date: Mar 2012
Location: India
Quote:
Originally Posted by the_scotsman View Post
Great work! Thanks for this!
Glad u liked sir ...

Sent from my MB525 using xda premium
 
jotha
Old
#8  
jotha's Avatar
Forum Moderator / Recognized Themer
Thanks Meter 6689
Posts: 4,209
Join Date: Sep 2006
Location: Bavaria, close to Munich

 
DONATE TO ME
Quote:
Originally Posted by TotalD3str4ct View Post
Is it possible to put these into the menu that appears by right clicking in the bottom left corner?
Though it is possible in principle, it is much more complicated. I read a tutorial somewhere how to add things in that menu, but somehow windows checks some checksums on that menu on every start and it's really hard to put smth there. If you are interested in that topic, google for it. You probably will find a how-to. But be warned, you are in for a treat .

Some things I made:
CirclesMod All-in-One Mod-Pack for One
APM for One X
- APM for One V - EQS for One X
Battery% Mods for One X - CirclesMod for One X
Themes for 4ext Recovery Touch -

NO support questions via PM, I will NOT answer.
PM is personal, support is for all to know.
For moderating issues, please use "report".
If you don't like my moderation, read this.



 
drziddo
Old
#9  
drziddo's Avatar
Senior Member
Thanks Meter 37
Posts: 366
Join Date: Jun 2010
Thank you so much for this.
 
whitexp
Old
#10  
whitexp's Avatar
Senior Member
Thanks Meter 2948
Posts: 893
Join Date: Jan 2012
Location: Rio De Janeiro

 
DONATE TO ME
thankyou very much
I'm on vacation of xda start 25/01 --xx/03/2013

http://forum.xda-developers.com/signaturepics/sigpic494185_9.gif



Visit my blog whitedroid

The Following User Says Thank You to whitexp For This Useful Post: [ Click to Expand ]