Results 1 to 3 of 3

Thread: sending backspace to erase a character

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    117

    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

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: sending backspace to erase a character

    You could try using SendKeys if you make the other window the active one...


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width