sending backspace to erase a character
iam using to postmessage api with vbkeyback to erase the charactes typed and post some other character in my local language software.
PostMessage(wndHndl, WM_CHAR, Asc(Chr(8)), Keybrd_Delay)
the problem is i can't send backspace to all windows applications. some applications like excel and coreldraw didnot take backspace key with postmessage api.
how can i erase the characters i typed.......
please helpme
Re: sending backspace to erase a character
You could try using SendKeys if you make the other window the active one...
Re: sending backspace to erase a character
If the above suggestion doesn't work, you could look into doing the following.
Hook the target window and trap all WM_CHAR messages. When one of the offending characters arrives, replace it with the correct one.
I've written some code that makes this pretty simple to do. Take a look at it here.