novice29 Posted April 18, 2021 Share Posted April 18, 2021 Hi, I am trying to calculate the time it takes to fully load an application. How do I detect when an application is fully loaded? I am using ControlGetHandle but it is returning the handle even before the application is fully loaded. Please help Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 18, 2021 Moderators Share Posted April 18, 2021 Moved to the appropriate forum. Moderation Team 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...
JockoDundee Posted April 18, 2021 Share Posted April 18, 2021 6 hours ago, novice29 said: How do I detect when an application is fully loaded? What do you mean by “fully loaded” ? The program has clearly started and is running if you can get the handle of a control. Once a program is running, for instance “myprog .exe”, it is technically “fully loaded”. Actually, It sounds like you are waiting for some initialization to finish before interacting. This varies greatly and there is no standard method of determination of readiness. so, you’ll have to either 1) time how long it takes the program after starting to get to that state, add a fudge factor, and then sleep for that long before you try to interact. 2) wait for some other button or window or pixel to appear that is a reliable indicator of the program being ready before you try to interact. Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
Nine Posted April 18, 2021 Share Posted April 18, 2021 What is the application you want to monitor ? Is it a Web apps or Win apps ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Zedna Posted April 18, 2021 Share Posted April 18, 2021 (edited) Maybe text in Statusbar or Mouse pointer (HourGlass) can be read/evaluated. Look at https://www.autoitscript.com/autoit3/docs/functions/StatusbarGetText.htm https://www.autoitscript.com/autoit3/docs/functions/MouseGetCursor.htm EDIT: You can wait until some control gets focused, see https://www.autoitscript.com/autoit3/docs/functions/ControlGetFocus.htm EDIT2: If your app contains some default data, for example in ListView/TreeView then you may (in cycle) read that data Edited April 18, 2021 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now