How to Detect a Key Pressed from Outside my VB App like Getting the Cursor Positon
Hi,
With the GetCursorPos API we can get the Position of the Cursor even when a VB APP is not in Focus. ie., wherever the mouse is moved the Mouse Position can be traced with the GetCursorpos API. Is there any API to trace out the Keyboard hit events and trace the value of Key Pressed. Say suppose if the Enter Key is Pressed I should get a value like the KeyAscii Value. Is it Possible...:eek: If Possible then can anyone explain it to me with a working Example... I will be greatly thankful to you.
It's giving a Error, Invalid Addressof TimerProc...
Hi Vlatko,
I tried your Program, It's giving me a error called Invalid AddressOf usage (something like that). What should I do now. And from where can I get the Value of Keypressed and in What Format. Whether Keycode or KeyAscii, Or anyother Different value. Please help me...
Anyway thanks for ur code....
How about Alt, Ctrl and Shift Keys...
Hi Vlatko,
If I pressed the Normal Character Keys and the Number Keys then it'll give a Character then how about about the Mask keys namely Alt, Ctrl and Shift Keys. Also how about the Function Keys... Have any Idea....
Thanks Megatron I got It....
Hi Megatron,
I got them and thanks for it. I've not yet tried them. After trying I'll contact you. Can u give ur mail id. It would be easy for me to contact you there.
Regards
Re: Thanks Megatron I got It....
Quote:
Originally posted by lvramanan
Hi Megatron,
I got them and thanks for it. I've not yet tried them. After trying I'll contact you. Can u give ur mail id. It would be easy for me to contact you there.
Regards
Sure, it's [email protected]