Rubbadubbadoo Posted December 28, 2013 Share Posted December 28, 2013 (edited) 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. Sleep(1000) 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. Sleep(500) Send("{Tab}") Selects next data entry box. Sleep(500) 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. Exit Edited December 28, 2013 by Rubbadubbadoo Link to comment Share on other sites More sharing options...
PhoenixXL Posted December 28, 2013 Share Posted December 28, 2013 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 Regards 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. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 28, 2013 Moderators Share Posted December 28, 2013 Rubbadubbadoo,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. M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts