Jump to content

Maybe a simple script, but I'm an idiot

Recommended Posts

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:




Wait 15 minuts

But at the same time always "search" for the magic button.

Repeat until stopped


Hope you understand.

Link to comment
Share on other sites


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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...