|
Example Scripts :: MultiRun
Here are a couple of example scripts for
MultiRun.
Running Counter Strike (Steam)
This script closes Desktop
Sidebar and MSN
Messenger, runs Counter
Strike and waits for it to be closed,
then restores the sidebar and MSN.
' Close Sidebar
KillProgram("sidebar.exe")
' Close MSN Messenger
KillProgram("msnmsgr.exe")
' Wait for all to close
wait(3)
' Then Shell CounterStrike and wait
for it to finish
shellWait("C:\Program Files\Steam\Steam.exe","C:\Program
Files\Steam","",normal)
' After close shell the sidebar again
shell("C:\Program Files\Desktop
Sidebar\sidebar.exe","C:\Program
Files\Desktop Sidebar","",norm)
' Shell MSN again
shell("C:\Program Files\MSN
Messenger\msnmsgr.exe" ,"C:\Program
Files\MSN Messenger" ,"",norm)
|
Running PowerDVD from myHTPC
This script is used from within myHTPC.
It runs PowerDVD
and then pauses for a few seconds to ensure
it has fully loaded. It then sets the focus
to the main PowerDVD window.
| ' Open PowerDVD
shell("C:\Program Files\PowerDVD\PowerDVD.exe","C:\Program
Files\PowerDVD","",norm)
' Pause the script to allow PowerDVD
to open
wait(3)
' Then ensure PowerDVD has focus
setFocus("powerdvd") |
|