Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2006 Jan : Swap Keys

www.cryer.info
Managed Newsgroup Archive

Swap Keys

Subject:Swap Keys
Posted by:"William D. Knak Filho" (delp..@via.com.br)
Date:Wed, 11 Jan 2006 15:21:48

I want to make a system wide application to intercept all pressed keys
(event Shift, Ctrl, F1, F2, Home, End, etc...) but not only intercept, but
also change some keys for others....

So, I will make a Swap table like that:

D     --> 4
7      --> K
F4    --> M
Shift --> 1
1      --> Shift
......

I have made a system Keyboard Hook based on sources found on internet and I
can get "Virtual Key Code", "Scan Code", and other stuff, but changing
lParam and wParam before "CallNextHookEx" don't do anything....

The only thing I can do is Stop to send pressed key for the application
(bypassing CallNextHookEx), but not change the pressed Key....

Sorry about my English,

and thanks for any help...

  --
  William Douglas Knak Filho

Replies:

www.cryer.info
Managed Newsgroup Archive