Field Exit key does not seem to work with the presskey() method.
-
- 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.
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.
-
- 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.
I ended up doing this. Combining some advice from a js guy with what little I know of Genie.
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.
Code: Select all
pui.set("I_4_21", (" " + get(I_4_21)).slice(-9));
presskey("Enter");
-
- 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.
How about:
That assumes the cursor is already where you want it to be when you hit field exit...
Code: Select all
pui.fieldExit();
pressKey("Enter");
Who is online
Users browsing this forum: No registered users and 2 guests