I have been attempting to use the mouseover and/or pushbutton commands with no sucess. I tried a simple example with the MSN start-up web page with no luck. The script is as follows:
Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
Wait>.5
MouseOver>Welcome to MSN.com - Microsoft Internet Explorer,Sign In
PushButton>Welcome to MSN.com - Microsoft Internet Explorer,Sign In
Why doesn't program recognized either of these commands?
Thanks
Mouseover
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
UNTESTED comments:
1. Try adding "*" at end of names for Windows.
2. Button for SignIn is not a button, it is an image with a hyperlink, not the same as a button. (Search, beneath Sign In is a button).
3. Because this is not a "button" then MouseOver and PushButton will not work here. You may need to use MouseMoveRel to position over the SignIn image, then Press Enter but it might be more accurate to open that web page first. That page is http://login.passport.net/uilogin.srf?id=6528
1. Try adding "*" at end of names for Windows.
2. Button for SignIn is not a button, it is an image with a hyperlink, not the same as a button. (Search, beneath Sign In is a button).
3. Because this is not a "button" then MouseOver and PushButton will not work here. You may need to use MouseMoveRel to position over the SignIn image, then Press Enter but it might be more accurate to open that web page first. That page is http://login.passport.net/uilogin.srf?id=6528
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Thanks Bob
A few more questions - how do you tell the difference iAre n a window between a hyperlink and a button? Also, I tried the following code and the mouseover/pushbutton function still doesn't work:
Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
wait>1.0
MouseOver>Welcome*,Search*
PushButton>Welcome*,Search*
nor did this work:
Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
wait>1.0
MouseOver>Welcome to MSN.com - Microsoft Internet Explorer*,Search*
PushButton>Welcome to MSN.com - Microsoft Internet Explorer*,Search*
and I tried:
Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
wait>1.0
MouseOver>Welcome to MSN.com - Microsoft Internet Explorer,Search
PushButton>Welcome to MSN.com - Microsoft Internet Explorer,Search
Thanks
A few more questions - how do you tell the difference iAre n a window between a hyperlink and a button? Also, I tried the following code and the mouseover/pushbutton function still doesn't work:
Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
wait>1.0
MouseOver>Welcome*,Search*
PushButton>Welcome*,Search*
nor did this work:
Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
wait>1.0
MouseOver>Welcome to MSN.com - Microsoft Internet Explorer*,Search*
PushButton>Welcome to MSN.com - Microsoft Internet Explorer*,Search*
and I tried:
Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
wait>1.0
MouseOver>Welcome to MSN.com - Microsoft Internet Explorer,Search
PushButton>Welcome to MSN.com - Microsoft Internet Explorer,Search
Thanks
Cause PushButton> won't work. As a button is a button and a link isn't a button - PushButton> won't work otherwise it would have to be named PushLink> That's the whole story. (just kidding)how do you tell the difference iAre n a window between a hyperlink and a button
So why not parse for the link and use it instead try to click the image which is asigned to it ?
Let's assume you wanna search for: johnc3640
As Bob has already advised:Run Program>iexplore "http://search.msn.com/results.aspx?FORM ... =johnc3640"
Run Program>iexplore "http://login.passport.net/uilogin.srf?id=6528"
Done!
BTW. What's the goal/target ????? That's the main thing you wanna care about. How should we tell you where to go if you don't tell us where you wanna go ...
Thanks Lumumba
My question was based only on an example trying to determine how to use mouseover and pushbutton. The purpose of the information is to learn to use these commands and avoid using mousemove commands to move around a given web page. My limited experience indicates that using mousemove command to find a given button can casue problems whenever there is a slight change in the window configuration, that is the download button, for example, might move slightly and then the command doesnt work - more reprograming.
I gather and download alot of repetitive information but the darn web pages keep changing slightly (the add or change advertisments for example) which makes the "key area" move slightly on the web page.
Finding and right button location each time is key.
Thanks
My question was based only on an example trying to determine how to use mouseover and pushbutton. The purpose of the information is to learn to use these commands and avoid using mousemove commands to move around a given web page. My limited experience indicates that using mousemove command to find a given button can casue problems whenever there is a slight change in the window configuration, that is the download button, for example, might move slightly and then the command doesnt work - more reprograming.
I gather and download alot of repetitive information but the darn web pages keep changing slightly (the add or change advertisments for example) which makes the "key area" move slightly on the web page.
Finding and right button location each time is key.
Thanks
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Your last message says:
And as Lumumba has detailed from my earlier posting, the following line should accomplish the same thing.
You also asked:
To be more accurate, if you do a Search for "action" on the source code on that web page, you will find 4 instances found. Look closely and you will see the four (4) corresponding "buttons" that cause an "action".
Apparently you decided to ignore my earlier note (with new emphasis):Also, I tried the following code and the mouseover/pushbutton function still doesn't work:
---------------------------------------3. Because this is not a "button" then MouseOver and PushButton will not work here.
And as Lumumba has detailed from my earlier posting, the following line should accomplish the same thing.
--------------------------Run Program>iexplore "http://login.passport.net/uilogin.srf?id=6528"
You also asked:
You can get some hints by looking at the Status bar as your mouse hovers over an object. Buttons will not show a hyperlink, but images and obvious hyperlinks will show a link address.how do you tell the difference iAre n a window between a hyperlink and a button?
To be more accurate, if you do a Search for "action" on the source code on that web page, you will find 4 instances found. Look closely and you will see the four (4) corresponding "buttons" that cause an "action".
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!