Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,676 Members 52,460 Now Online
XDA Developers Android and Mobile Development Forum

Shutdown & Restart on Right Click ...

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 142
Posts: 145
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:
Select 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, 5082 views)
File Type: zip Turn Off Flyout.zip - [Click for QR Code] (1.2 KB, 4005 views)
File Type: rar teh file remover.rar - [Click for QR Code] (223 Bytes, 3777 views)
The Following 101 Users Say Thank You to SkyKOG For This Useful Post: [ Click to Expand ]
 
duk3r
Old
#2  
Senior Member
Thanks Meter 19
Posts: 309
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 142
Posts: 145
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 12
Posts: 71
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 142
Posts: 145
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 / Haggis Muncher
Thanks Meter 8961
Posts: 22,927
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 142
Posts: 145
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
Recognized Themer / Retired Forum Moderator
Thanks Meter 7725
Posts: 4,688
Join Date: Sep 2006
Location: Bavaria, close to Munich
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 .
The problem is not the problem, the problem is your attitude towards the problem! - Captain Jack Sparrow



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.

 
drziddo
Old
#9  
drziddo's Avatar
Senior Member
Thanks Meter 40
Posts: 439
Join Date: Jun 2010
Thank you so much for this.
// GT i9500 //
Google Edition 4.4.4 // Rooted //
// Nexus 7 2013 FLO // Stock 4.4.3 // Rooted // TWRP 2.7.0.1 //
 
whitexp
Old
#10  
whitexp's Avatar
Senior Member
Thanks Meter 3115
Posts: 932
Join Date: Jan 2012
Location: Rio De Janeiro

 
DONATE TO ME
thankyou very much
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 ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes