Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Pertinax

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:

 

KeyDown

KeyUp

Wait 15 minuts

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

Repeat until stopped

 

Hope you understand.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Hello

 

Thank you sir.

 

I have some more infomation. 47 timer.png

 

If you look at the picture, the "OK" button is what the script needs to click on.

 

Thank you.

47 timer.png

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×