Event keyboard question

BjornF

Active Member
Licensed User
Longtime User
Dear Micro,

my Italian is not very good (=non-existent :)). Could you (or someone else) translate your question to those of us who do not speak it? I think it will increase the chances of you getting an answer.

all the best / Björn
 

micro

Well-Known Member
Licensed User
Longtime User
Dear Micro,

my Italian is not very good (=non-existent :)). Could you (or someone else) translate your question to those of us who do not speak it? I think it will increase the chances of you getting an answer.

all the best / Björn
;) ok.

I want at any time, also if at that moment the focus is on a label or a textbox or a form or other, capture the button pressed on the keyboard.
In vb.net with the function of GetAsyncKeyState Lib "user32.dll" can get everything but with basic4ppc can not get.
Can you help?

Bye
 

Ricky D

Well-Known Member
Licensed User
Longtime User
in a textbox

use the textbox's keypress event - it brings back the key that was pressed.

as for a label there is no way.

I think it might take something written in C++ to access the sip keypresses.
That is beyond my understanding sorry to say.

I've started dabbling in C# writing a custom SIP that covers the area of the normal sip and allows me to show alphabet for strings and numeric for numbers.
My sip won't be brought up by the sip icon though. When a control gets focus it calls the Show method.

regards, Ricky
 

micro

Well-Known Member
Licensed User
Longtime User
:) ok Erel, it works perfectly.
Only a problem, why the key "Tab" is not captured?
:sign0188:
 

micro

Well-Known Member
Licensed User
Longtime User
ok, grazie filippo. :sign0060:
Ho fatto una prova veloce sul pc e ci siamo quindi dovrei aver risolto.
Bye
 
Top