Pertinax Posted April 20, 2016 Share Posted April 20, 2016 Hello guys. I need a script that can do the following: Press arrowkey down, press arrowkey up, then wait for 15 mins. But the catch is, that any minute there can be a pop-up window with a specific button you have to press so: KeyDown KeyUp Wait 15 minuts But at the same time always "search" for the magic button. Repeat until stopped Hope you understand. Quote Link to comment Share on other sites More sharing options...
Wanted Posted April 21, 2016 Share Posted April 21, 2016 var T: LongInt;begin repeat Wait(1000); VKeyDown(VK_Down); Wait(1000); VKeyDown(VK_Up); T := (GetSystemTime + (15 * 60 * 1000)); while (T > GetSystemTime) do begin if (GetColor(100, 100) = 16777215) then // or some condition for dectection begin // More detections and conditions/actions end; Wait(150); end; until (False);end. Hard to help you with the middle part since it's not very detailed. You might be able to do some color at point detection or bitmaps etc. Quote Link to comment Share on other sites More sharing options...
Pertinax Posted April 24, 2016 Author Share Posted April 24, 2016 Hello Thank you sir. I have some more infomation. If you look at the picture, the "OK" button is what the script needs to click on. Thank you. Quote Link to comment Share on other sites More sharing options...
Wanted Posted April 24, 2016 Share Posted April 24, 2016 ... Yea probably just keep it simple with bitmap detection and conditions. Quote Link to comment Share on other sites More sharing options...
Pertinax Posted April 24, 2016 Author Share Posted April 24, 2016 But how? Quote Link to comment Share on other sites More sharing options...
Wanted Posted April 24, 2016 Share Posted April 24, 2016 But how? http://forums.scar-divi.com/showthread.php?t=2850&p=15270&viewfull=1#post15270 Combine with above script.. put the bitmap declaration before the loop and the condition for finding in the inner loop replace result of condition with whatever. I think you'll figure it out with some toying around Quote Link to comment Share on other sites More sharing options...
Pertinax Posted April 24, 2016 Author Share Posted April 24, 2016 Thank you Quote Link to comment Share on other sites More sharing options...