cancel
Showing results for 
Search instead for 
Did you mean: 

How do I TAB and insert text into selected field?

Former Member
0 Kudos

This is a very simple task, but I cannot find out how to do it. I'm guessing that for sending the TAB key, I could simply use the VBScript command:

SendKeys "%"

If this is not the case, please correct me. After I TAB, I need to insert a string of text into the selected field. How do I do it?

Thank you in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_brutigam2
Active Participant
0 Kudos

Hi peperez

To fill in the Data in the Textfield you dont need to "TAB" ...

You just need the Name the field

for example

session.findbyid("wnd[0]/usr/ctxterg")

than simply put it like this:


session.findbyId("wnd[0]/usr/ctxterg").Text  = mytext

To find the name of the field just use the Hit-Assistant in Scripting

copy the field name and you'll get something like

//app/......

shorten it to where wnd[0] begins and all is done

Greetings

Thomas Br