Shutdown & Restart on Right Click ...

Search This thread

SkyKOG

Senior Member
Mar 12, 2012
151
143
India
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 ;) ....

IgN7K.png


Flyout Version :) ...

xy11S.png


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
 
Last edited:

TotalD3str4ct

Senior Member
Oct 30, 2010
77
12
Is it possible to put these into the menu that appears by right clicking in the bottom left corner?
 

SkyKOG

Senior Member
Mar 12, 2012
151
143
India
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 :) ...
 

jotha

Retired Forum Moderator
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 :D.
 

SkyKOG

Senior Member
Mar 12, 2012
151
143
India
Thanks a bunch!

Do you know how we could add the "Sleep" and "Lock" option to this also?

Added the options :good:...

Plus Added all the possible options too in the flyout version :p ...
(Credits to Vishal & Leomate:angel: for showing how to make flyout :) ... )

Hope u ppl like it :) :highfive:....

Regards
 

cniru

New member
Nov 6, 2008
2
1
Reg hacks for turn-down options !

Super duper work Sir !!!

I just ran your reg-script and deleted the 4 icons for Shutdown/Log-off/Sleep/Restart
that I was using from another awesome dude in XDA since the last two weeks !

Reg-hacking FTW !
Hope someone finds a way out on how to go to the desktop on boot, then I can get
rid of these Start8, ClassicShells et al ... (no complaints for them) and just get to
work on boot up (even though pressing Win-D takes ~1ms !) ... but dude am I lazy !

Cheers !

---------- Post added at 03:57 PM ---------- Previous post was at 03:52 PM ----------

Super duper work Sir !!!

I just ran your reg-script and deleted the 4 icons for Shutdown/Log-off/Sleep/Restart
that I was using from another awesome dude in XDA since the last two weeks !

Reg-hacking FTW !
Hope someone finds a way out on how to go to the desktop on boot, then I can get
rid of these Start8, ClassicShells et al ... (no complaints for them) and just get to
work on boot up (even though pressing Win-D takes ~1ms !) ... but dude am I lazy !

Cheers !

Oh yes, that was Talderon whose scripts for adding turn-off icons to the start screen I was using.
I had even expanded on them a bit and added a few nicer (read bigger and brighter) icons !

Thanks Talderon and SkyKOG ! You guys in the XDA forums rock ... why weren't I here before !
 
  • Like
Reactions: SkyKOG

Top Liked Posts

  • There are no posts matching your filters.
  • 102
    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 ;) ....

    IgN7K.png


    Flyout Version :) ...

    xy11S.png


    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
    1
    dude you rock! At last no more charm bar!
    1
    dude you rock! At last no more charm bar!

    Glad u liked :) ...
    1
    Great work! Thanks for this! :good:
    1
    thankyou very much