FME_KEYUP
Description
- FME_KEYUP event is triggered when the user releases a keyboard button.
- The n value of the events contains the VK code of the released key.
- To activate the FME_KEYDOWN event you need use "Dialog: keyevents" or setDialogEvent(4) in your code.
- If you want to check for mouse buttons, Shift, Ctrl, Alt etc. you need to use getAsyncKeyState() or getAsyncKeyStateF().
Example
%ffp
Dialog: keyevents
OnCtl(n): {
if (e == FME_KEYUP) {
Info("You just released key %d", n);
}
return false;
}
Also see
- FME_KEYDOWN, getAsyncKeyState, getAsyncKeyStateF, setDialogEvent, VK codes
Comments
- Everyone can add his comments about his experiences with this event here. Tips for using it are welcome, too.