Field Exit key does not seem to work with the presskey() method.

Use this board to ask questions or have discussions with other Genie users.
Post Reply
rmarsh
Profound User
Posts: 56
Joined: Tue Jan 20, 2015 4:28 pm
First Name: Raymond
Last Name: Marsh
Company Name: Cracker Barrel Old Country Sto
Phone: 615-235-4215
Address 1: PO Box 787
City: Lebanon
State / Province: Tennessee
Zip / Postal Code: 37088
Country: United States
Contact:

Field Exit key does not seem to work with the presskey() method.

Post by rmarsh »

I am trying to create a button that will field exit then enter. If you enter wihout field exit the code entered will not be found unless it is long enough to fill the entire field. In 5250 it is a 8 character input field that must be right justified. On green screen you type the code, press field exit then enter.
rmarsh
Profound User
Posts: 56
Joined: Tue Jan 20, 2015 4:28 pm
First Name: Raymond
Last Name: Marsh
Company Name: Cracker Barrel Old Country Sto
Phone: 615-235-4215
Address 1: PO Box 787
City: Lebanon
State / Province: Tennessee
Zip / Postal Code: 37088
Country: United States
Contact:

Re: Field Exit key does not seem to work with the presskey() method.

Post by rmarsh »

I ended up doing this. Combining some advice from a js guy with what little I know of Genie.

Code: Select all

pui.set("I_4_21", ("     " + get(I_4_21)).slice(-9));
presskey("Enter");
Anyway, this works. I would like to know if there is a way to use presskey with "Field exit". I tried several variations on "Field Exit" with no success.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Field Exit key does not seem to work with the presskey() method.

Post by Scott Klement »

How about:

Code: Select all

pui.fieldExit();
pressKey("Enter");
That assumes the cursor is already where you want it to be when you hit field exit...
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests