SystemKey
PowerScript event
Description
Occurs when the insertion point is not in a line edit, and the user
presses the Alt key (alone or with another key).
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_syskeydown |
Window |
Arguments
|
Argument |
Description |
|---|---|
|
key |
KeyCode by value. A value of the KeyCode enumerated |
|
keyflags |
UnsignedLong by value (the modifier keys that were |
Return Values
Long.
Return code choices (specify in a RETURN statement):
0 — Continue processing
Usage
Pressing the Ctrl key prevents the SystemKey event from firing when
the Alt key is pressed.
Examples
This example displays the name of the key that was pressed with the
Alt key:
|
1 2 3 4 5 6 7 8 9 10 11 |
string ls_key CHOOSE CASE key CASE KeyF1! ls_key = "F1" CASE KeyA! ls_key = "A" CASE KeyF2! ls_key = "F2" END CHOOSE |
This example causes a beep if the user presses Alt+Shift+F1.
|
1 2 3 4 5 |
IF keyflags = 1 THEN IF key = KeyF1 THEN Beep(1) END IF END IF |
See also