Cursor position in a "Dialog"
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 18
- Joined: Fri Mar 19, 2004 4:59 pm
- Location: Ephrata, Washington USA
- Contact:
Cursor position in a "Dialog"
How do I position the cursor when using the "Show" command for the second and subsequent displays of a "Dialog" The first show command puts the cursor in the proper field. But after that, the active "field" is the "OK" button that was pressed to record the data that was entered. The Dialog has one data entry field, one check box, an "OK' button and a "Cancel" button. After the user enters the data and either checks the box, or not and presses the OK button, the data is recorded to a file and the dialog is displayed again, but the OK button is where the "focus" is. I want it to be on the data entry field.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I don't think that you can Tab/Press/Up/Down/MouseMove/Sen once you open the Dialog Box.
Macro processing is suspended when the Show> command is called. So no navigation moves can happen until the Dialog box is closed. Then the macro continues and can be controlled based on the value of %result%.
Macro processing is suspended when the Show> command is called. So no navigation moves can happen until the Dialog box is closed. Then the macro continues and can be controlled based on the value of %result%.
Last edited by Bob Hansen on Mon Jun 28, 2004 3:49 pm, edited 1 time in total.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
-
- Newbie
- Posts: 18
- Joined: Fri Mar 19, 2004 4:59 pm
- Location: Ephrata, Washington USA
- Contact:
I have tried them, with less than desirable results. It appears the problem is that the script (Showing the dialog) stops and waits for input from the user. I think the problem is that the "Show" command needs to be able to position the "focus" because once the dialog is displayed, the show command does not have the ability to move it from its last known position (in my case, the "OK" button). At least, I can not figure out if it does.