Giulio Posted September 2, 2017 Share Posted September 2, 2017 Hi guys, wanted to make a script that opens a program, and do other stuff. I started with Run() funtion and it works, the problem is that I don't know how much time the programm will take to open, and i want to do it as fast as possible, for this I don't want to use sleep(). Is there a function that pause the script until the program I lauched finished to load the GUI? Thanks for the help! Link to comment Share on other sites More sharing options...
kosamja Posted September 2, 2017 Share Posted September 2, 2017 what program do you want to open? check process usage and when it is 0 then program is probably completely loaded Link to comment Share on other sites More sharing options...
Giulio Posted September 2, 2017 Author Share Posted September 2, 2017 1 hour ago, kosamja said: what program do you want to open? .exe file 1 hour ago, kosamja said: check process usage and when it is 0 then program is probably completely loaded I'm sorry I'm a newbe, could you explain me please Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 2, 2017 Moderators Share Posted September 2, 2017 Giulio, I see you did not read those rules to which you were pointed very carefully - 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 start another thread on this - our patience has limits. 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