Jump to content

dufran3

Active Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by dufran3

  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
  14. Read Rules and see this
  15. Assign the random number a variable, split the number, then run checks against the new re-roll. Post some example code that you have already started working on.
  16. This is going to be a lot of work...after looking into it further...haha...maybe I better come up with something easier
  17. That is what I was thinking.
  18. Right, intitally however, they all pretty much travel at the same speed. With exception of the large Red bird I think. But good point!
  19. If only it was that easy. I need to somehow figure out the velocity of the bird. That is the first task. Then I will need to somehow use the x and y displacement that is in meters, and somehow make that useable in pixels. I believe there is a meter -> inches -> pixels conversion that I might be able to use...not sure yet
  20. So, today, I'm bored at working, looking through the support forum to see if I can help anyone...which is mostly no, because I'm not that skilled, but I do my best. I had an epiphany! What if I wrote a script that calculated the physics in Angry Birds. I have taken physics classes in the past, and remember studying Angular Projectile Motion. It seems that AutoIt supports all the mathematical computations that would be required. Wanted to get some opinions on this idea....
  21. In XP, when green scores, and the screen resets, the green x is replaced by the goal grey color.
  22. show me what you have so far
×
×
  • Create New...