Presses F11 after greater than 60 minutes, checks every 2 seconds, all that can be changed by adjusting values. Also, If it has been running for greater than 14 days it will quit.
#Include <Date.au3>
AdlibRegister('_Screenshot', 2000)
$tStart = TimerInit()
While 1
Sleep(10)
WEnd
Func _Screenshot()
If _DateDiff( 'D',"2011/05/17 00:00:00",_NowCalc()) > 14 Then Exit
If TimerDiff($tStart) > 3600000 Then
Send("{F11}")
EndIf
EndFunc
here is a start. This presses F11 if the timer goes over 60 minutes. Nothing to do w/ days yet though...
AdlibRegister('_Screenshot', 2000)
$tStart = TimerInit()
While 1
Sleep(10)
WEnd
Func _Screenshot()
If TimerDiff($tStart) > 3600000 Then
Send("{F11}")
EndIf
EndFunc
are you making sure you end your Case statement correctly?
Select
Case $Command1
While 1
$Pixel = PixelSearch ( 0, 0, @DesktopWidth, @DesktopHeight, 0x000000)
If Not @Error Then MouseClick ( "left" , $Pixel[0], $Pixel[1])
WEnd
;Script Has Now Ended
While 1
$Pixel2 = PixelSearch ( 0, 0, @DesktopWidth, @DesktopHeight, 0x111111)
If Not @Error Then Msgbox (0,'', 'blah blah' )
WEnd
EndSelect
??
Case $Command1
While 1
$Pixel = PixelSearch ( 0, 0, @DesktopWidth, @DesktopHeight, 0x000000)
If Not @Error Then MouseClick ( "left" , $Pixel[0], $Pixel[1])
WEnd
; Now I want it to end that script and start the script below:
While 1
$Pixel2 = PixelSearch ( 0, 0, @DesktopWidth, @DesktopHeight, 0x111111)
MouseClick ( "left" , $Pixel1[0], $Pixel1[1]
WEnd