simulate keystrokes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xxsodapopxx5
    New Member
    • Dec 2006
    • 22

    simulate keystrokes

    I was wondering if there was a way to simulate keystrokes.
    i.e. "backspace" , "backspace" , "1","space" , "5"
    1 5

    i need it to external applications and sendkeys.send won't work.

    thanks for your help. It is much appreciated.
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Originally posted by xxsodapopxx5
    I was wondering if there was a way to simulate keystrokes.
    i.e. "backspace" , "backspace" , "1","space" , "5"
    1 5

    i need it to external applications and sendkeys.send won't work.

    thanks for your help. It is much appreciated.
    SendKeys.Send() is the usual way of sending keystrokes...ma ke sure your external application is focused.

    For sending tab you should be using [CODE=cpp]Sendkeys.send(" {TAB}");[/CODE]
    for backspace - "{BACKSPACE }"
    for 1 - "1"

    cheers

    Comment

    Working...