Jump to content
Sign in to follow this  

How Do I Get AutoIT to Wait on a Grayed Out Button?

Recommended Posts

I am attempting to write script to launch a program with autoIT. What I have so far is working but I am having trouble figuring out how to make autoit pause until updates are finished loading before it hits the Enter key to start the program. Load times for updates vary from day to day so I want the script to pause until the OK button is lit up.

Here is what I have so far. Any advise would be greatly appriciated. I am hoping there is a simple solution to this.

Run("C:Program.exe") Executes the program.
WinWaitActive("Program") Waits until the program's window is active.
MouseClick("left", 970, 390, 1, 0) Insures the program window is in foreground.
Send("{Tab}") Toggles from title to user name input box.
Send("{Tab}") Skips user name entry as it will already be there.
Send("password") Enters my password.
Send("{Tab}") Selects next data entry box.


Send({Enter}) Executes the entered information and opens the next window for starting the program.

runwait??("here is where I do not know how to get autoit to wait for the program to download updates before hitting ({Enter}) key to start the program. The OK button is not active until updates are complete.)

Send({Enter}) Starts the program.

Share this post

Link to post
Share on other sites


You did not read the Forum rules to which I linked you earlier very well - you missed the part that says:


"Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above"

Do NOT post a third time - 2 strikes is quite enough for one day. :naughty:


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...