I am trying to select different tabs by pressing CTRL and then sending TAB. But MS does not recognize that the CTRL key is held down, so it just cycles through the different fields. So I have resorted temporarily to using mouse clicks to select the tabs. Any suggestions here?
Chris
Control Tab not working
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
The program we are using is for simulating underwater acoustics, and for a particular simulation, we would like to cycle between tabs, change values and then go to another tab. Here is what we've tried:
SetFocus>PC SWAT - [PCSWAT1]
// ---------------------------------------------------------
// Opens the forward time series dialog box and then modifies the range/depth settings
Press ALT
Send Character/Text>g
Release ALT
Press Up
Press Right
Press Enter
WaitWindowOpen>Forward Time Series
Press CTRL
Press Tab
Press Tab
Press Tab
Release CTRL
Wait>0.05
Press Backspace
// This next send character refers to the range to target.
Send Character/Text>5.5
Press Tab
Press Tab
Press Tab
Send>100
Press Tab
Send>100
// ---------------------------------------------------------
To get it to work correctly, i've just inserted a move mouse rel and then left click:
MouseMoveRel>425,20
LClick
Thanks for your help.
Brad (Chris's co-worker)
SetFocus>PC SWAT - [PCSWAT1]
// ---------------------------------------------------------
// Opens the forward time series dialog box and then modifies the range/depth settings
Press ALT
Send Character/Text>g
Release ALT
Press Up
Press Right
Press Enter
WaitWindowOpen>Forward Time Series
Press CTRL
Press Tab
Press Tab
Press Tab
Release CTRL
Wait>0.05
Press Backspace
// This next send character refers to the range to target.
Send Character/Text>5.5
Press Tab
Press Tab
Press Tab
Send>100
Press Tab
Send>100
// ---------------------------------------------------------
To get it to work correctly, i've just inserted a move mouse rel and then left click:
MouseMoveRel>425,20
LClick
Thanks for your help.
Brad (Chris's co-worker)
not recognising CTRL
I fount that adding a small wait (0.2) seems to fix MS not recognising CTRL being pressed before Tabbing.