| View previous topic :: View next topic |
| Author |
Message |
Guest Guest
|
Posted: Fri Oct 08, 2004 2:37 pm Post subject: Web Page |
|
|
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
|
Posted: Fri Oct 08, 2004 3:23 pm Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
anatoly_larkin Guest
|
Posted: Fri Nov 12, 2004 1:33 am Post subject: |
|
|
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
|
Posted: Mon Nov 29, 2004 12:51 am Post subject: |
|
|
Disregard that reply. I designed a much better solution.
Look for it under thread "Wait for Webpage?"
Anatoly _________________ ||||
------
!! |
|
| Back to top |
|
 |
|