ddwest Guest
|
Posted: Tue Jul 08, 2008 11:50 pm Post subject: StatusBarWait for Internet Explorer |
|
|
I am very new to programing and AutoHotKeys and I am attempting to write a Macro that will access a data base and run a search, eventually saving the results to a spreadsheet. I am trying to use the statusbarwait command, which I thought was working, but just started acting strange.
Here is the code...
Run http://DatabaseURL.com
sleep 100
StatusBarWait, found, 1000
Sleep 2000
Send, Username
Send, Password
Sleep 100
StatusBarWait, found, 1000
Sleep 2000
IfWinExist, Security Alert
Send {Enter}
Sleep 100
StatusBarWait, found, 1000
Sleep 2000
Send, {Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}
Send, {Tab}{Tab}{Tab}{Tab}
Send, {DOWN}{DOWN}{DOWN}{DOWN}{DOWN}
Sleep 100
StatusBarWait, found, 1000
Sleep 2000
Send, {Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}
Send, {Tab}{Tab}{Tab}{Tab}{Tab}
Send, {Enter}
Sleep 100
StatusBarWait, found, 1000
Sleep 2000
MouseClick, left, 22, 420
Sleep, 100
MouseClick, left, 721, 276
Sleep, 100
The main issue is the status bar wait command, because as is the code executes too rapidly.
Any help would be greatly appreciated.
Thanks,
ddwest |
|