RickyPontes


I'm building a Virtual keyboard in Fox Pro. So far no problem, but now i'm having some problems with the cursor keys and delete key.


This is the code I'm using for the A key click and it's works fine.



DOEVENTS force
keybd_event(65,0,0,0)
keybd_event(65,0,2,0)
DOEVENTS force



but the delete key and cursors key it's not working. I'm using code 46 for the delete key and 37,38,39 and 40 for the cursor key.

Any help will be appreciated.




Re: Virtual keyboard problems

AndyKr


The Codes that VFP uses for the various keys are listed in the help file under the INKEY() function.

That shows Up, Down, Left and Right as 5, 24, 19 and 4 respectively, while DEL is 7. Do those work







Re: Virtual keyboard problems

RickyPontes

Hi,

Thanks for your answer.

I've tried those number but it doesn't work.

Can you help me






Re: Virtual keyboard problems

Andreas Christoforou

Why you don't use KEYBOARD '{DEL}' instead





Re: Virtual keyboard problems

RickyPontes

It work Smile...


Thanks for your answer...