Description
Returns the status of Shift,Ctrl and Alt key.
Available in Fred and Ted.
Syntax
dim iKey as Short = object.GetQualifier() |
object
Ted or Fred
Return value
0 | none pressed |
1 | shift pressed |
2 | ctrl pressed |
3 | shift+ctrl pressed |
4 | alt pressed |
5 | shift+alt pressed |
6 | ctrl+alt pressed |
7 | shift+ctrl+alt pressed |
Remarks
Note: when using this to test keys status in a script, be aware that you should assign to the script all combinations of keys involved. An example: let's assume you made a script TestQualifier, and assigned the F2 key to it.. When you test it, it works if you press the F2 key alone, but not if you press Shift+F2. Conclusion: to use key-sensitive scripts, you have to assign all eight keys combionations to the same script: F2, Shift+F2, Alt+F2, Ctrl+F2, Shift+Alt+F2, Shift+Ctrl+F2, Alt+Ctrl+F2, Shift+Alt+Ctrl+F2.
Context
Main application common dispatcher commands