sstouk Posted November 20, 2007 Share Posted November 20, 2007 (edited) I have an application to automate and monitor the time it takes to display a result of search within its popup window. When the search is started I can see nothing changes within the Active Window Info except the Cursor ID: value changes while the window is being filled-in with results. Since this is the only information I have indicating that the search is complete (I need to time this event for a stress-test), I'd like to see if there is a way to capture it within AutoIt script... something like a WinWait() method but the one that captures the CursorID value change. Is this possible? P.S. Even if there's no such specific method, I could still loop the "while CursorID = xxx" ... but I need to know how I could use the CursorID value within the script for such purpose. Thank You. Edited November 20, 2007 by sstouk Link to comment Share on other sites More sharing options...
zfisherdrums Posted November 21, 2007 Share Posted November 21, 2007 (edited) Hello sstouk, Would this do the trick? Dim $initialCursorID = MouseGetCursor() ; Initiate Test here... Dim $start = TimerInit() While MouseGetCursor() <> $initialCursorID Sleep( 10 ) Wend ConsoleWrite( TimerDiff( $start ) & @CRLF) Zach... Edited November 21, 2007 by zfisherdrums Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... Link to comment Share on other sites More sharing options...
sstouk Posted November 21, 2007 Author Share Posted November 21, 2007 Perfect. Thank you so much! 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