--- In [email protected], Grumpy Gamer <[EMAIL PROTECTED]>
wrote:
>
> Hello everyone,
>
> If (processid("=Fraps")) Do
> Do ( "C:/Program Files/Crysis/Bin32/Crysis.exe" )
> Else
> Do ( "C:/Program Files/FRAPS/Fraps.exe" )
> Wait.for( 2000, activewindow("=Fraps") )
> Do ( "C:/Program Files/Crysis/Bin32/Crysis.exe" )
> EndIf
>
> This is the script that runs when I click a button on my PowerPro
bar.
> What I want to do is to add a line to
run "c:\TempFiles\HWMonitor.exe"
> and move the window to my second monitor to both sections, before
the
> 'run crysis.exe' part. Any guidance would be appreciated.
Insert statements like this before the Do which runs crysis:
do("..your file name...")
//wait for its window to appear
wait.for(5, activewindow("=hwmonitor"))
local hwnd=win.handle("active")
// replace xx, yy by coordinates on screen you want window to move to
win.move(hwnd,xx, yy)