Jump to content

danner

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by danner

  1. Somehow it didn't work perfectly, so changed it to this: while 1 If PixelGetColor(117,45) <> 0xE25A54 Then Send("2") Sleep(2000) Else Sleep(100) Send("{TAB}") Sleep(100) Send("{SPACE}") Sleep(10000) Send("{SPACE}") Sleep(3500) Send("{SPACE}") Sleep(2500) Send("{SPACE}") Sleep(2500) EndIf WEnd Can't test it just yet, but this SHOULD work right? I mean press 2 when the color is different, and if not do the long loop...
  2. Lol just found out myself while reading that i forgot my endif, thanks
  3. Listen, if you want it done for you then you're at the wrong address i guess. Read through the help file, you can do this in several ways...
  4. Ok, the problem is in Line 46, because the error states the WEnd shouldn't be there somehow. What I want is, to loop from the first While to the last, but IF PixelGetColor is any other then the displayed Hex, then ti needs to re-do that loop over and over untill it's back into the origoinal color. Little help anyone? Script: WinWaitActive($Window) While WinExists($Window) While WinActive($Window) Sleep(100) Send("{TAB}") Sleep(100) Send("{SPACE}") Sleep(12000) Send("{SPACE}") Sleep(4000) Send("{SPACE}") Sleep(3000) Send("{SPACE}") Sleep(3000) While 1 If PixelGetColor(117,45) <> 0xE25A54 Then Send("{2}") Sleep(100) Else ExitLoop WEnd WEnd Sleep(200) WEnd
  5. Maybe you want to let the script press space when the color of the background changes when the thing goes over it. So when it get's any different color then what it was it'll press spacebar... like: While 1 Sleep(100) While $Reset <> 0 If PixelGetColor(134, 702) <> 0x000000 Then; replace 0x000000 with the actual color of the back ground using AutoInfo Tool Send("{SPACE}") ;Sleep(100); if it takes a long time, you might consider a sleep $Reset = 0 EndIf WEnd WEnd Hope this helps
  6. The Tab Down works like a charm, and timerinit could work aswell, not perfect yet... thanks for the replies
  7. Hey ppl, i basically want my script to do what it says, but somehow it doesn't hold the tab key when i use the following: While 1 if $Start = 0 Then sleep(100) EndIf if $Start = 1 Then Sleep(Random(3000,5000)) Send("7") Sleep(1000) Send("{{Tab} Down}}") Sleep(50) MouseClickDrag(1,232,1023,232,10) Sleep(50) MouseClickDrag(1023,232,1,232,10) Sleep(50) Send("{{Tab} Up}}") Sleep(Random(3000,6000)) Send("P") Sleep(Random(50,500)) EndIf WEnd Send("{Tab} Down") also doesn't work... Also, is it possible to put the mouseclickdrag in a timed loop, so it loops that for 1 minute and then continues? a few of my efforts failed horribly There's also the pasting it a million times option..
×
×
  • Create New...