Postion the cursor over a particular tab

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
SWhitsell
Newbie
Posts: 6
Joined: Wed Nov 19, 2003 3:38 pm

Postion the cursor over a particular tab

Post by SWhitsell » Fri Dec 19, 2003 8:57 pm

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. :)

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Dec 19, 2003 11:48 pm

Please provide some sample code and show where and how it fails.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

SWhitsell
Newbie
Posts: 6
Joined: Wed Nov 19, 2003 3:38 pm

Post by SWhitsell » Mon Dec 22, 2003 10:19 pm

// 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

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Dec 22, 2003 10:46 pm

I saw three syntax errors in the sample code, made changes here:
// 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
See if it works after making the three changes noted above:
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!

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue Dec 23, 2003 10:07 am

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.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts