I have a script to open and control a FireFox brower session. Now when I run it brings up a Replace Text dialog. I can edit/recreate the macro via partially or completely retyping the macro. But it seems the problem will reoccur sometime later on. Has anyone else seen this before?
Thanks,
Matt
Replace text dialog
Moderators: JRL, Dorian (MJT support)
- aboredprogrammer
- Junior Coder
- Posts: 40
- Joined: Wed Jan 27, 2010 6:31 am
Here's the script:
Code: Select all
Let>site=http://www.omni.cc/intranet/sales/
IfWindowOpen>Sales - Mozilla Firefox,End
IfWindowOpen>Modela Intro - Mozilla Firefox,End
IfWindowOpen>Problem loading page - Mozilla Firefox,ReopenPage
ExecuteFile>C:\Program Files\Mozilla Firefox\firefox.exe,-url %site%
WaitWindowOpen>Sales - Mozilla Firefox
SetFocus>Sales - Mozilla Firefox
Press>Alt
SendText>
Release>Alt
SendText>x
Press>F11
Goto>End
Label>ReopenPage
SetFocus>Problem loading page - Mozilla FireFox
Press>Ctrl
SendText>l
Release>Cntl
SendText>%site%
Press Enter
Label>End
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I can't test right now, but I see a number of coding issues
Try this:
Try this:
Code: Select all
Let>site=http://www.omni.cc/intranet/sales/
IfWindowOpen>Sales - Mozilla Firefox*,End
IfWindowOpen>Modela Intro - Mozilla Firefox*,End
IfWindowOpen>Problem loading page - Mozilla Firefox*,ReopenPage
ExecuteFile>C:\Program Files\Mozilla Firefox\firefox.exe "%site%"
WaitWindowOpen>Sales - Mozilla Firefox*
SetFocus>Sales - Mozilla Firefox*
// Press>Alt
// SendText>
// Release>Alt
// Need to Move Mouse to position before SendText ?
SendText>x
Press>F11
Goto>End
Label>ReopenPage
SetFocus>Problem loading page - Mozilla FireFox*
Press>Ctrl
SendText>l
Release>[b]Ctrl[/b]
// Need to Move Mouse to position before SendText ?
SendText>%site%
Press Enter
Label>End
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!