IS it possible in vb
-
Sir i need to develop a software where i have to change the ascii character into extended ascii character and send to the active application. say if a user type A from the keyboard it should be converted to say € irrespective of whatever the application is running may be it is visual studio or word or notepad or photshop u name it. Is it possible to achive this in vb 6 and if yes then how? Codes or ideas are greatly appreciated. Thanks in advance
-
Sir i need to develop a software where i have to change the ascii character into extended ascii character and send to the active application. say if a user type A from the keyboard it should be converted to say € irrespective of whatever the application is running may be it is visual studio or word or notepad or photshop u name it. Is it possible to achive this in vb 6 and if yes then how? Codes or ideas are greatly appreciated. Thanks in advance
In order to get your hands on the keystroke before NAY application got it, you would have to install a low-level keyboard hook. This is done by writing a callback function (one where the system calls you), and using the Win32 API calls to SetWindowsHookEx, UnhookWindowsHookEx, and CallNextHookEx. Documentation on these calls can be found on MSDN starting here[^]. Mind you, hooking into the system isn't really VB's forte'. I've never done it in VB. It just looked MUCH easier to write in C++. I did something similar to prevent the 'Window' key from being used.