firsttimer Posted October 7, 2012 Posted October 7, 2012 This is my code below. $sText = ControlGetText("TeamViewer", "Wait for Session", "Edit2") If $sText = "" Then Exit MsgBox(0, "ControlGetText Example", "The control text is: " & $sText) It works provided, the teamviewer app exist or not exist. But it wont work if the teamviewer app hang/freeze. Is there a solution for me to check or time out the ControlGetText if teamviewer hang? Thanks.
JohnOne Posted October 7, 2012 Posted October 7, 2012 There is a function for something like that, was called ishungapp, or isapphung and was possibly created by trancexx (sorry to author if wrong) In any case a search of example scripts forum will turn it up. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
firsttimer Posted October 7, 2012 Author Posted October 7, 2012 Thanks but I think the solution provided by the link below work better.
JohnOne Posted October 7, 2012 Posted October 7, 2012 Glad you are happy.For referenceIsHungAppWindowhttp://msdn.microsoft.com/en-us/library/windows/desktop/ms633526(v=vs.85).aspx AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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