Pages: 1
RSS
All scheduled tasks, (to open this window when TB is lauched)
 
Hello,

How to open The Bat! with the window "All scheduled tasks" open (command line?).

In advance, thanks for your reply.
 
I don't think you can open the scheduler from the command line.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
copy text below, paste it Notepad and save it with a .vbs extension, then double click it.
If needed adjust the path to thebat.exe
After .Sleep there is a delay in milliseconds needed for theBat to start - for faster PC's decrease it

Code
'=========================
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run Chr(34) & "C:\Program Files\The Bat!\thebat.exe" & Chr(34) & "/NOLOGO", vbnormalfocus
WScript.Sleep 5000
WshShell.SendKeys "%{F11}"
set WshShell = nothing
'=========================


if you need to do this from a .bat file/command prompt, simply start the .vbs from it
Edited: bigg one - 13 September 2008 15:32:46
 
Thanks.

The VBscript works fine if the parameter Sleep is 6000 or more.

Can you explain this?
 
yes.
Basically it works as follows:

launch theBat
wait some seconds (defined by .Sleep) for theBat to start
send to it emulated keystrokes ALT+F11 (which open theBat's scheduler)

If theBat is not yet fully started, it will not process the ALT+F11 keystrokes, and nothing will happen.
Sleep delay should be long enough for theBat to fully start and be able to respond to commands.

So on your system theBat needs 6+ seconds to start. On mine it needs 2 :)
Edited: bigg one - 13 September 2008 21:08:00
Pages: 1