DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Shutdown/restart/hibernate etc. ability?  (Read 7,256 times)

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Shutdown/restart/hibernate etc. ability?
« on: November 14, 2006, 04:45 AM »
Hey all was wondering if anyone knew how I could add the Shut Down/Restart/Stand By etc. to the bar so I could dump the taskbar completely...

If not Mouser could this be added in a future release?

Thanks all!
-Wreckedcarzz

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Shutdown/restart/hibernate etc. ability?
« Reply #1 on: November 14, 2006, 07:09 AM »
the easiest way would be to install this freeware tool that can do tons of things through the commandline:
http://www.nirsoft.net/utils/nircmd.html

then just have launchbar commander invoke the commands you want.

gives me an idea that i should create a default nircmd toolbar with predefined functions and buttons that you could drag and drop onto your own toolbars, etc.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Shutdown/restart/hibernate etc. ability?
« Reply #2 on: November 15, 2006, 01:46 AM »
i use a JScript that shows the ShutDown dialog upon clicking on it, just google it & you'll find a lot of examples.
here's one:
Quote
Bringing Up the Shutdown Dialog Box

  1. Create a new txt file somewhere on your system, open it and put in this one line:
      (new ActiveXObject("Shell.Application")).ShutdownWindows();
  2. Save and Close the file. Change the extension to js and your got it.
  3. You can make a shortcut to that file to make it easy to shut down your system.
Source: http://www.privacywindows.com/windows_xp_faq/shutdown_dialog.html

Original address: https://www.donationcoder.com/forum/index.php?topic=6156.0