Cursor position in a "Dialog"

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Kent Rukke
Newbie
Posts: 18
Joined: Fri Mar 19, 2004 4:59 pm
Location: Ephrata, Washington USA
Contact:

Cursor position in a "Dialog"

Post by Kent Rukke » Mon Jun 28, 2004 2:02 pm

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.

Lumumba

Post by Lumumba » Mon Jun 28, 2004 3:36 pm

What about a quick TAB move :wink:

Or that : MouseOver>window_title,button/object_caption ?

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 Jun 28, 2004 3:48 pm

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%.
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!

Kent Rukke
Newbie
Posts: 18
Joined: Fri Mar 19, 2004 4:59 pm
Location: Ephrata, Washington USA
Contact:

Post by Kent Rukke » Mon Jun 28, 2004 3:49 pm

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.

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