Beginner

Started by Haakon Birkeland, May 02, 2005, 12:30:35 PM

Previous topic - Next topic

Haakon Birkeland

Hi there
I figured since I bought FF a while ago I should start learning it. Downloaded 2.1.Top down programming is not a problem event programming so so.
The Info required.
In the Keydown event I tried adding
If nVirtKey =  %VK_RETURN Then MsgBox "ok"

This should trap the enter key and pop a msgbox
This seems to work in WM_CHAR ==>If chCharCode = %VK_A Then MsgBox "A Ok"

Anything I should do different

By the way Keyup works as expected
thanx
bert
Haakon 8o)

TechSupport

I don't know for 100% but I will check my Rector and Newcomer book when I get home. I did search POFFS and there were a few posts that talked about it being better to trap the non-ASCII keys in the KEYUP message.

Haakon Birkeland

the reason I ask is that I use keydown when using EZGUI. The event program I am using seems to have no problem identifying the key in either keyup or keydown.So depending on the operation I can cancel the down event then cancel the up event and not get in trouble.

Bert
Haakon 8o)