[request] System Shutdown Widget...

Just noticed that DesktopX 2.2 comes with a System Shutdown Widget I thought this would be nice on AveDesk (though AD is soooo much cooler than DX), too. So I was looking for a way to bring up the Shutdown Dialog in Windows XP. And here's what I have found:

set objshell = wscript.CreateObject("Shell.Application")

objshell.ShutdownWindows

These two lines need to be saved in a plain .txt document and then renamed to .vbs. Then just add a Shortcut with AveDesk, link to this .vbs file and you're done !

So, this already works fine, but I guess it would be way cooler to have that in a ALL-IN-ONE widget without the need to link to an .vbs file. And imagine how cool a glowing MAC like POWER-ON button will look like... :rolleyes:

Unfortunately I have absolutely no clue how to make a widget that's why I kindly ask some of you crazy hackers out here to make this happen.

Thanks in advance,

bM3w

P.S.: I assume the above script works only with Win XP

#206568

Also works on 2000, including variation of .Suspend instead

of .Shutdown.

What's wrong with a script shortcut? How crazy do you want a hacker

to be for coding a total of zero added value?

#206586

Originally posted by herd@Aug 24 2004, 02:02 PM

Also works on 2000, including variation of .Suspend instead

of .Shutdown.

What's wrong with a script shortcut? How crazy do you want a hacker

to be for coding a total of zero added value?

<{POST_SNAPBACK}>

:D

There's nothing really wrong with a script shortcut. A widget/desklet just would do it easier in terms of distribution and personally I'd prefer the "clean" way without a script here, an icon and a shortcut there...you know what I mean ;)

Too bad I don't know how to build a widget/desklet, otherwise I'd be crazy enough to code that zero added value...

cheers,

bM3w

#206610