|
Purpose | With On an InputScript can be processed if the user presses Enter or a function key. On is used in a GuiXT script. |
Examples | On “Enter” Process=“nextproduct.txt”
On “/11″ Process=“update.txt” |
Format | On “fc” Process=“script”
On “fc” Process=“script” Fcode=“newfc” “fc” can be one of the following strings:
Fcode=“newfc” the code newfc is invoked. This can be a code from the menu, e.g. SCMP, or a transaction code like /NFB01 or /OMM02. |
Special Controls | On control=“controlname” item=“itemid” event=“eventno” Fcode=“newfc” Process=“script”
Handles simple events in special controls (button click, menu item selection), e.g. in “Object services”. Please use the “Input Recording” to create the control, item and event . They are identical with the specifications in “Enter“. |
Tips &Tricks |
A combination of function keys with the Ctrl and Shift keys can be represented by a number between 13 and 48
The Enter key can be represented by /0. Shift+F1 /13 Ctrlt+F1 /25 Shift+Ctrl+F1 /37 Example: On “/39″ Fcode=“/0″ Process=“warning.txt” Result: When the user presses Ctrl+Shift+F3, the Enter key is simulated and the script warning.txt is processed. |