Jump to content

Help �Last Control Under Mouse� or �Window Text�.


Recommended Posts

I have a web page that I want to open, I also want to time it and check for errors. The main problem I am having is how to determine it is finished loading.

I cannot check the mouse cursor since it changes back and forth while opening adobe. I cannot rely on Status Bar Text since it Done shows up 3 times.

All I can see that shows that it is finished is Last Control Under Mouse or Window Text. How do I work with these?

Press CTRL-ALT-F to pause the display.

>>>>>>>>>>>> Window Title <<<<<<<<<<<<<
Document Results 

(  classname=IEFrame  )

>>>>>>>>>>> Window Dimensions <<<<<<<<<<<
left: -4     top: -4     width: 1032     height: 748

>>>>>>>>>>> Mouse Position <<<<<<<<<<<
On Desktop: x: 524     y: 356
In Window:  x: 528     y: 360

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB Mode -  Hex: 0xD4D0C8    Dec: 13947080
BGR Mode -  Hex: 0xC8D0D4    Dec: 13160660

>>>>>>>>>>> Last Control Under Mouse <<<<<<<<<<<
Class: AVL_AVView4
Text: AVPageView

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<
(1): Done
(2): 
(3): 
(4): 
(5): 
(6): Internet

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<
http://12X.XX.XXX.6/nr/docViewFrameTop.asp?ID=1801&RepoType=corporate&DocName=Patient_Summary_Management_MonitorISR&DocType=rep&aBob=isrv1&aCyp=53swsd4585F
http://1xx.xx.xxx.x/nr/docViewFrameTop.asp?ID=1801&RepoType=corporate&DocName=Patient_Summary_Management_MonitorISR&DocType=rep&aBob=isrv1&aCyp=534356xxxxx45xxF
Done
http://1xx.xx.xxx.x/nr/xxxxxxx.asp?entry=xxxx&Report=%2FDocument%2Fpatient%5Fsummary%5Fmanagement%xxx&path=a.pdf
AVDocToolView
AVSplitterView
AVScrollView
AVPageView
AVButton
112%
AVButton
AVButton
AVButton
AVEditView
1 of 25
AVButton
AVButton
AVButton
AVEditView
11 x 8.5 in
AVButton
AVButton
AVButton
AVButton
AVButton
AVOverView
AVTabView
AVBookmarkView
AVScrollView
AVTreeView
AVToolBarEasel
AVToolBarView
AVToolBarView
AVToolBarView
AVToolBarView
AVZoomView
AVEditView
112%
AVButton
AVToolBarView
AVToolBarView
AVToolBarView
AVToolBarView

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<
AVEditView
AVButton
AVButton
AVProgressView
AVButton
AVToolBarEasel
AVToolBarEasel
AVToolBarEasel
Link to comment
Share on other sites

check out

StatusbarGetText ( "title" [, "text" [, part]] )

for example

Dim $SecondsTaken = 0
While 1
   Dim $IsItDone = StatusbarGetText ( "title", "text", 1 )
   If $IsItDone == "Done" Then ExitLoop
   Sleep ( 1000 )
   $SecondsTaken = $SecondsTaken + 1   
WEnd
MsgBox ( 0, "Seconds Taken for Page to Finish Loading...", $SecondsTaken )
Edited by w_sp8er
Link to comment
Share on other sites

  • 2 years later...

Actually i have to handle the exception in Autoit. So if in my application exception Window is generated, then how to get that error or exception text, so that I can close that window and proceed further. In short how to get the text from Mouse under Cotrol

Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...