AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Web Page

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Guest
Guest





PostPosted: Fri Oct 08, 2004 2:37 pm    Post subject: Web Page Reply with quote

Is there a way to find get a list of what scrolls off in the Status Bar.

I wish to capture the second last message to use in StatusBarWait,.....

The last one "Done" appears quite frequently, intermixed with more loading so is unusable.

I have reviewed the help files and see some lists for variables, scripts etc, but do not have the knowledge of how to get that second last text
Back to top
BoBo
Guest





PostPosted: Fri Oct 08, 2004 3:23 pm    Post subject: Reply with quote

Code:
WinWaitActive, AutoHotkey ; testing during the refresh of one of my favourite web pages
Send, {F5} ; refresh

Loop
   {
   StatusBarGetText, OutputVar ; get the statusbartext
   If OutputVar = Done ; break if page has finished loading
      Break
   PrevOutputvar = %Outputvar% ; keep the detected string
   }
MsgBox, %PrevOutputvar% ; display the detected string before "Done" has appeared
ExitApp


Seems to work Cool
Back to top
anatoly_larkin
Guest





PostPosted: Fri Nov 12, 2004 1:33 am    Post subject: Reply with quote

Also,
You can try having ahk wait half a second after a Done flashes and then check for Done again. By that time the intermediate Done should have dissapeared. (and again and again as necessary).

BTW, does this mean that your StatusBar commands are working and actually do grab hold of the text from the window StatusBar?
In my case and some other users (on this forum) StatusBar is not able to grab text (ErrorLevel = 2)


Any suggestions?

see - StatusBarWait not working. thread.

Anatoly
Back to top
Anatoly Larkin



Joined: 28 Nov 2004
Posts: 18
Location: USA

PostPosted: Mon Nov 29, 2004 12:51 am    Post subject: Reply with quote

Disregard that reply. I designed a much better solution.
Look for it under thread "Wait for Webpage?"
Anatoly
_________________
||||
------
!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group