
Postion the cursor over a particular tab
Moderators: JRL, Dorian (MJT support)
Postion the cursor over a particular tab
I need to position the cursor over a particular tab and then preform a Click. I have tried MouseOver,Display Properties,Settings. That does not seem to work. Any suggestion will be greatly appreciated. 

- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
// C:\Program Files\MJT Net Ltd\Macro Scheduler\3272 Add Video Drivers.scp
// Recorded on Friday, November 7, 2003, at 02:30 PM
Let>WW_TIMEOUT=10
//Recorded Events
//Start the Display Properities window
Run Program>rundll32.exe shell32.dll,Control_RunDLL desk.cpl
WaitWindowOpen>Display Properties
WaitReady>0.5
SetFocus>Display Properties
MoveMouseRel>0,0
MouseOver,Display Properties,Settings
//Cursor never moves over Setting Tab
// Recorded on Friday, November 7, 2003, at 02:30 PM
Let>WW_TIMEOUT=10
//Recorded Events
//Start the Display Properities window
Run Program>rundll32.exe shell32.dll,Control_RunDLL desk.cpl
WaitWindowOpen>Display Properties
WaitReady>0.5
SetFocus>Display Properties
MoveMouseRel>0,0
MouseOver,Display Properties,Settings
//Cursor never moves over Setting Tab
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I saw three syntax errors in the sample code, made changes here:
1. WaitReady> only accepts 0 or 1 for a value.
2. Wrong command for MouseMoveRel>
3. Missing ">", extra comma on MouseOver> command.
========================================
Note: I went back and tried it myself.
After those changes are made, it still does not move over the Setings Tab. It does move to the OK and CANCEL buttons. Using Macro Scheduler Windows Tools, the tabs at the top are not listed as buttions on the Display Properties object. So you may have to use MouseMoveRel to get to the Settings tab, then do a Lclick command.
See if it works after making the three changes noted above:// C:\Program Files\MJT Net Ltd\Macro Scheduler\3272 Add Video Drivers.scp
// Recorded on Friday, November 7, 2003, at 02:30 PM
Let>WW_TIMEOUT=10
//Recorded Events
//Start the Display Properities window
Run Program>rundll32.exe shell32.dll,Control_RunDLL desk.cpl
WaitWindowOpen>Display Properties
WaitReady>1
SetFocus>Display Properties
MouseMoveRel>0,0
MouseOver>Display Properties,Settings
//Cursor never moves over Setting Tab
1. WaitReady> only accepts 0 or 1 for a value.
2. Wrong command for MouseMoveRel>
3. Missing ">", extra comma on MouseOver> command.
========================================
Note: I went back and tried it myself.
After those changes are made, it still does not move over the Setings Tab. It does move to the OK and CANCEL buttons. Using Macro Scheduler Windows Tools, the tabs at the top are not listed as buttions on the Display Properties object. So you may have to use MouseMoveRel to get to the Settings tab, then do a Lclick command.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Hi,
The key to Windows automation is to know how to use Windows and keep things simple. You know that you can use CTRL-TAB to move between tabs? And SHIFT-CTRL-TAB will move BACK a tab. So, all you need to do is:
Run Program>rundll32.exe shell32.dll,Control_RunDLL desk.cpl
WaitWindowOpen>Display Properties
Press Shift
Press CTRL
Press Tab
Release CTRL
Release Shift
And this will open the Settings Tab.
Try not to overcomplicate things.
The key to Windows automation is to know how to use Windows and keep things simple. You know that you can use CTRL-TAB to move between tabs? And SHIFT-CTRL-TAB will move BACK a tab. So, all you need to do is:
Run Program>rundll32.exe shell32.dll,Control_RunDLL desk.cpl
WaitWindowOpen>Display Properties
Press Shift
Press CTRL
Press Tab
Release CTRL
Release Shift
And this will open the Settings Tab.
Try not to overcomplicate things.
MJT Net Support
[email protected]
[email protected]