T
TC
Hi All. I've asked this question before and didn't get any solid answers,
but the application went cold, so I left it alone.
The app has re-surfaced so I'm back on it but face the same frustrating
problems, I hope someone has come accross this and has an answer.
It's a compact framework application written in VB.
I'm using the keybd_event api to throw characters at the system curser.
From all the examples I can find you basically set the api call up with the
ascii value of the key to send (or byte) and depress and release the key
keybd_event(byt(t), 0, 0, 0)
keybd_event(byt(t), 0, KEYEVENTF_KEYUP, 0)
However, if I want to send the character 'a', and I have done this with
bytes and hardcoded ascii values, I send the number 97, which represents a
in the ascii page. The result is '1'
I can send any Upper Case alpha character without problems. What is
stranger, if I send other data, ie. '*' or '^' I hit control keys, close
windows and all sorts of odd things happen on the portable.
Has anyone got any idea what is wrong here? I'm sure it's something really
simple I've over looked, but it's driving me nutts!
Cheers.
but the application went cold, so I left it alone.
The app has re-surfaced so I'm back on it but face the same frustrating
problems, I hope someone has come accross this and has an answer.
It's a compact framework application written in VB.
I'm using the keybd_event api to throw characters at the system curser.
From all the examples I can find you basically set the api call up with the
ascii value of the key to send (or byte) and depress and release the key
keybd_event(byt(t), 0, 0, 0)
keybd_event(byt(t), 0, KEYEVENTF_KEYUP, 0)
However, if I want to send the character 'a', and I have done this with
bytes and hardcoded ascii values, I send the number 97, which represents a
in the ascii page. The result is '1'
I can send any Upper Case alpha character without problems. What is
stranger, if I send other data, ie. '*' or '^' I hit control keys, close
windows and all sorts of odd things happen on the portable.
Has anyone got any idea what is wrong here? I'm sure it's something really
simple I've over looked, but it's driving me nutts!
Cheers.