Newbie Question - Edit Fields

Discuss RoboTask here
Post Reply
Damien
Posts: 2
Joined: Mon Dec 26, 2005 8:05 pm

Newbie Question - Edit Fields

Post by Damien »

I am just testing RoboTask and it seems fairly straight forward to drive, but I am having one problem.

I am trying to select an edit field on a windows form to type some test
into it. Am using the "Move To Object" to select the field, followed by
a "Send Keys" to fill in the field. For some reason it does not seem to
select the text field and fill it in.

I have noticed that the RoboTask seems to stop executing the script when it gets to this command, but I cant see why.

Am I doing this the right way? Is there some magic to this process?

Any help appreciated.

Regards,

Damien
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Newbie Question - Edit Fields

Post by Oleg »

Probably you specify some wrong parameters. RoboTask can check window caption by part of string. Therefore you don't need to specify full caption of window or text of control element. Action editor of "Move To Object" action have interactive autofilling mechanism when you chose the desired control. Next you can change parameters manually.
Can you send error messages from log of the task?
Damien
Posts: 2
Joined: Mon Dec 26, 2005 8:05 pm

Newbie Question - Edit Fields

Post by Damien »

Thanks for the above reply and Happy New Year!

I do not get an error, but the behaviour that I am seeing suggests that
the correct window and the correct field on the screen is being 
identified (as the cursor moves to the correct field), but it will not
select the field or update it.

I have found a work around that is a bit clunky:
1. Move To Object (This is the edit field)
2. Click Left Button
3. Send Keys to active window

The above works, which also implies that the "Move To Object" is
finding the corect field, but just wont put a value into it. I am
making the assumption that the value called "Control Text" in the "Move
To Object" is where the I place my new text to enter into the field
when the target object is a TEdit? Therefore the "Move To Object" is
supposed to do all the above steps (1, 2 and 3) in a single step?

Regards,

Damien
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Newbie Question - Edit Fields

Post by Oleg »

Happy New Year
In most cases enought "Send Keystrokes" action. I always use this action for filling of dialog boxes. I need for mouse action very rarely for non standard windows.
There are predefined key combination in Winsows:
Tab - next input field
Shift-Tab - previous input field
Enter - pressig default button (usually OK)
Esc - pressing Cancel button
Alt-<Underlined_Symbol> - acceleration key for selection of the field
Last edited by Oleg on Mon Jan 02, 2006 6:23 am, edited 1 time in total.
ExeMaker
Posts: 1
Joined: Wed Feb 01, 2006 1:11 pm

Newbie Question - Edit Fields

Post by ExeMaker »

Speaking of dialog boxes...
 I noticed that the state of your caps-lock on your keyboard does matter when RoboTask sends keystrokes.  Not really a problem, but something to be aware of, especially when your first dialog that you want to enter data into is a case-sensitive password.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Newbie Question - Edit Fields

Post by Oleg »

Now we've added system variables {CapsLockState}, {NumLockState}, {ScrollLockState} for determining current state of these keys. New release will be very soon.
Last edited by Oleg on Thu Feb 02, 2006 8:54 am, edited 1 time in total.
Post Reply