Jump to content

HAWKZX

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by HAWKZX

  1. removed for security reasons
  2. just looking to map a key to "pause" the script till unpause it. HotKeySet( "{END}", "quit") Func quit() Exit EndFunc is my quit function, just need a "pause" function now but can not find it in the help.
  3. next day bump
  4. I have yet to have that happen, as the loop is usually less then 10 mins, but this why I was seeking a second "out" of the loop. Works great if it is in the same function, but as soon as i move the "$timer = TimerInit ()" to the end of the function before this one i get an error on the "If TimerDiff ( $timer ) > 10000 Then empty()" is not defined. I only want the time to be set once per cycle I figured the easiest way to do that was to put it before this cycle. Any thoughs?
  5. $timer = TimerInit () If TimerDiff ( $timer ) = 10000 Then empty() i moved starter to the end of the targeting and had to change to If TimerDiff ( $timer ) > 10000 Then empty() as the odds of ending on exactly 10000 (XYZ) are really slim. Thanks for the help IT WORKS!
  6. next day bump for ideas
  7. To help with keeping titles and topics the same I created a new thread with the correct title. http://www.autoitscript.com/forum/index.php?showtopic=39404 Please do any follow up discussion on the new TOPIC so others can find the final answers easier.
  8. My only other idea, which i am not sure where to look, or how to do it is .... "DO" ABC "UNTIL" DEF "OR UNTIL" X timer (ie 10 mins expires) original thread http://www.autoitscript.com/forum/index.php?showtopic=39393 but the topic changed after it was answered. Func cycle() Sleep(150000) Send("{F1}") ;turn off then back on MouseMove(851, 647) Sleep(5000) If (PixelGetColor(851, 647) > 10000000) Then empty() Sleep(500) MouseMove(1704,82) ; target 1 MouseDown("left") MouseUp("left") Send("{F1}") If (PixelGetColor(1509, 62) = 0) Then target() Sleep(11000) Send("{F2}") ;turn off then back on MouseMove(851, 647) Sleep(5000) If (PixelGetColor(851, 647) > 10000000) Then empty() Sleep(500) MouseMove(1591,70) ; target 2 MouseDown("left") MouseUp("left") Send("{F2}") If (PixelGetColor(1509, 62) = 0) Then target() Sleep(11000) Send("{F3}") ;turn off then back on MouseMove(851, 647) Sleep(5000) If (PixelGetColor(851, 647) > 10000000) Then empty() Sleep(500) MouseMove(1493,77) ; target 3 MouseDown("left") MouseUp("left") Send("{F3}") If (PixelGetColor(1509, 62) = 0) Then target() Sleep(500) cycle() EndFunc Just looking to add a "if" 10 minutes pass "Then empty()" just not sure how to set up the timer or add the second varable.
  9. Func cycle() Sleep(90000) Send("{F1}");turn off then back on Sleep(1000) If (PixelGetColor(1509, 62) = 0) Then target() MouseMove(1704,82) ; target 1 MouseDown("left") MouseUp("left") Sleep(5000) Send("{F1}") MouseMove(851, 647) Sleep (5000) If (PixelGetColor(851, 647) > 10000000) Then empty() Sleep(11000) Send("{F2}");turn off then back on MouseMove(1591,70) MouseDown("left") MouseUp("left") If (PixelGetColor(1509, 62) = 0) Then target() Sleep(5000) Send("{F2}") MouseMove(851, 647) Sleep (5000) If (PixelGetColor(847, 648) > 10000000) Then empty() Sleep(11000) Send("{F3}");turn off then back on MouseMove(1493,77) MouseDown("left") MouseUp("left") If (PixelGetColor(1509, 62) = 0) Then target() Sleep(5000) Send("{F3}") MouseMove(851, 647) Sleep (5000) If (PixelGetColor(847, 648) > 10000000) Then empty() cycle() EndFunc
  10. Honestly I have not written the timer code yet. All i want to do it, run a cycle which I have already, and if 10 minutes pass by even if the cycle does not "finish" then break out. I am just iffy on the code to do it. give me 45 secs and i ll copy up the code I have from the other PC
  11. I think I can handle the timer, just adding the timer as the second variable i am a bit unsure about. SO the answer is... need help with the "Do loop."
  12. I guess the anwer would be the Loop with a second varable.
  13. Just the timer, adding the Second varable the "or else" / "or if" / "or until"
  14. Sweet, after 5 mins of playing it got it to work. Thanks for getting me over the hump. My only other idea, which i am not sure where to look, or how to do it is .... "DO" ABC "UNTIL" DEF "OR UNTIL" X timer (ie 10 mins expires)
  15. Sup all, Your friendly Troll here, after two hours in the forums doing searching decided to post the question. Just need the seeking the code to form a hot key to kill autoit. ie "pause/ break key" and autoit shuts down the current macro. Great program TWO to you all!! HAWKZX
×
×
  • Create New...