Hi
I have a problem with alert key, it doesn’t work.
In the Alert key Window Events, i have these codes ::
CASE KEYCODE()
OF F2Key
MESSAGE(‘F2’)
of F5Key
MESSAGE(‘F5’)
of F6Key
MESSAGE(‘F6’)
END
But the message box is not showing
Any ideas?
Thanks
You didn’t mention how you were alerting the keys.
In the windows property I setup the alert key

Looks ok. Are you sure you are in the Window Event for Event:AlertKey and not a ?Control.
You could post the exact code from your Generated CLW, there’s a chance some bug is causing it not to generate right.
Post the WINDOW declaration showing the ALRT() , and the “OF EVENT:AlertKey” with code lines.
Are there EVENT:PreAlert code lines?
You can put code on the OF line which I like in most cases as easier to read in less lines.
CASE KEYCODE()
of F2Key ; MESSAGE(‘F2’)
of F5Key ; MESSAGE(‘F5’)
of F6Key ; MESSAGE(‘F6’)
END
Also, before you lose too much hair, make sure the function keys actually work. Such as in a web browser. If not, it could be a Fn lock thing. https://www.addictivetips.com/windows-tips/use-fn-key-lock-on-windows-10/