calling the shutdown dialog via .js or.vbs file Thread last updated on 2004-04-19 12:57:28

Posted by member 135953 on 2004-04-15 04:01:59

Ok I have these 2 script that bring up the shutdown dialog box one .js anohter .vbs when explorer was my shell all i had to do is make a shorcut of one of them and voila I could bring up the shutdown dialog box, since litestep is my shell when do I open these file with to make em bring up the shutd box, its no explorer.exe tried that.

why do I wanna use one of these files? because if I use the
!shutdown bang the dilog box is not skined (using windowblinds 4.2)

Posted by member 1 on 2004-04-15 11:19:16 link

There is a module for that...take a look on loose-screws

Posted by member 135953 on 2004-04-15 15:29:23 link

A module for running js and vbs files or a module for shutdown, a module for shutdown might not help me cuz the window might not be skinned.(!shutdown bang is called the shutdown window is not skinned)......I'll check anyway and get back, I'm sure I ain't the only litestep+windowblinds user so this would be a benefit for everyone who uses this combo.

Posted by member 1 on 2004-04-15 16:47:11 link

its a bang that goes direct to shutdown so you create your own skin for the window

Posted by member 135953 on 2004-04-15 18:39:26 link

like I said when I do use the !shutown bang,
shutdown dialog box (classic explorer) is not skinned

Posted by member 99 on 2004-04-15 18:41:12 link

Does windowblinds explicity avoid skinning litestep windows? Can you tell it not to?

Posted by member 135953 on 2004-04-15 19:41:42 link

thanks for your response Rabid............ trust me us posters are always waiting for you and ilmcuts to check our posts, lol.

Well it seems that when a bang is executed like that opens a window eg !shutdown or even when I had icondesk module and double clicked on an icon (situated on my desktop)that just pointed to a folder explorer.exe wasn't listed as a process in taskmanager it just made litestep get slightly bigger same goes for !shutdown bang seems any type of window calling that does not go via the !execute ["$FileManager$" ]command is not skinned by windowblinds, setting windowblinds to exclude or include litestep does not make a diff.

My way around it was to call up that shutdown.js or even the shutdown.vbs file simple script

(new ActiveXObject("Shell.Application")).ShutdownWindows();

that works when explorer is the shell to call up the sd dialog, my only problem with litestep as my shell I don't know what to open it up with, opening it up using explorer dosent do the same thing.

Posted by member 1 on 2004-04-15 20:36:45 link

that used to work because the explorer shell has ActiveX controls which LiteStep does not. That is why you needed to use the shutdown module I mentioned earlier.

Posted by member 135953 on 2004-04-16 04:14:03 link

I checked shellfront.org and din't see any "shutdown module" is ther anyway youremember what the module is called?

any help is greatly appreciated

Posted by member 1 on 2004-04-16 13:57:30 link

There is a module out there called Laptop that should get the job done for you...shouldn't depend on the laptop at all. Otherwise there is always the direct link to the shutdown action.

Posted by member 1949 on 2004-04-16 16:46:56 link

Well if you run in classic mode in windows, No WB skining...
Adjust your performance settings in system properties.
You must have ajusted your system for performance
and xp disabled a lot visual effects.
And icondesk is a different problem all together.
Does the same to me. Its a module issue.

Posted by member 135953 on 2004-04-17 03:31:27 link

Well laptop.dll dosen't really bring up the shutdown dialog box just, bypasses it I am using it for now but what I wanted was just a different way of bringing the shutdown dialog box other then !shutdown

but that laptop.dll is a nice addition

Posted by member 1 on 2004-04-17 10:06:47 link

So code up an mzscript for !My_Shutdown and show some shortcuts or labels and link them to laptop.dll's !Bangs

Posted by member 103975 on 2004-04-19 01:36:49 link

If you're feeling adventurous you can try using Jim Warrington's wshATO object to make the shutdown API calls directly from your scripts. His site seems to have disappeared, but send me an e-mail if you'd like a copy of the control.

Posted by member 135953 on 2004-04-19 07:06:35 link

can that call the shutdown dialog, email philosopherking_2k3@hotmail.com

Posted by member 1 on 2004-04-19 12:57:28 link

as we have been trying to say...you can't call the shutdown dialog...you need to build your own.