Jump to content

dufran3

Active Members
  • Posts

    460
  • Joined

  • Last visited

dufran3's Achievements

Universalist

Universalist (7/7)

0

Reputation

  1. That is hilarious, so is the letter "a" english or non-english? lol
  2. Maybe this will help: From help file -
  3. hmmm...sounds like the 2nd post in the thread makes some sense...
  4. put it above the while statement. you can put a sleep in between checks, yeh... Sleep()
  5. 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
  6. 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
  7. that isn't what you want to do. Try adding a debug to see what is being assigned to $Command variable. ConsoleWrite('$command1: ' & $command1)
  8. the problem is with your $Command1 variable. If I set $Command1 = 1, the script works.
  9. Select...Case...EndSelect is a conditional statement. Check the help file. It will explain it.
  10. 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
  11. Look up the following functions Send _Timer_Init
  12. ?? 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
  13. you would have to copy the script locally, because you can't run a script if the source is unplugged
×
×
  • Create New...