Jump to content
Sign in to follow this  

How to make AutoIT Wait for Grayed out Button??

Recommended Posts

I am attempting to write script to launch an online game. 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 game. Load times for updates vary from day to day so I want the script to pause until the play 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:Game.exe") Executes game launcher.
WinWaitActive("Game") Waits until game window is active.
MouseClick("left", 970, 390, 1, 0) Insures the window is in forground.
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 game.

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

Send({Enter}) Starts the game.

Edited by Rubbadubbadoo

Share this post

Link to post
Share on other sites

Welcome to the forum Rubbadubbadoo,

You seem to have missed the Forum Rules(link at the bottom right of every page);

according to which, game automation isn't allowed. Please read the rules.

Hope to see you back with a new question :)


My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Share this post

Link to post
Share on other sites


PhoenixXL is quite right - please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game launching - before you post again. Thread locked. :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...