Rubbadubbadoo Posted December 28, 2013 Share Posted December 28, 2013 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. Sleep(1000) 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. 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 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. Exit Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 28, 2013 Moderators Share Posted December 28, 2013 Rubbadubbadoo,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. 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