Board index » delphi » In TP for Windows a SENDKEY

In TP for Windows a SENDKEY

I will emulate taste pressing (Same as SENDKEY in Visual Basic) in
Turbo pascal for Windows.
Wath can I do ?

Thanks

 

Re:In TP for Windows a SENDKEY


fesof...@estense.global.it (Paolo H?lzl Ferrara Software) wrote:

Quote
>I will emulate taste pressing (Same as SENDKEY in Visual Basic) in
>Turbo pascal for Windows.
>Wath can I do ?

If you know the window's handle which should receive the keystroke (use
GetActiveWindow or GetFocus) you could send a WM_CHAR or WM_KEYDOWN
message.

Matthias

Other Threads