Loop waiting for for editbox to be ready

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Scones
Junior Coder
Posts: 32
Joined: Fri Jul 05, 2019 11:21 am

Loop waiting for for editbox to be ready

Post by Scones » Tue Feb 04, 2020 1:07 pm

Hi!

Just thought i would share something i did to solve a problem i had.

I'm trying to automate an interface where literally no objects are recognizable so i have to be creative. Image recognition is also not an option for me.

I needed to find out when an editbox would be ready for input.

This loop keeps trying to type and copy until something actually comes into the clipboard.

Code: Select all

Label>LOOPSTART
Send s
Press CTRL
Send ac
Release CTRL
Wait 0.1
WaitClipBoard
GetClipBoard>EDITBOXRDY
IfNot>EDITBOXRDY=s
  GOTO>LOOPSTART
Endif
I know this is not rocket science, i'm still new.

If anyone know of a simpler way. Please let me know :)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts