SendKeys Question

Comments

1 comment

  • Avatar
    David McFarlane

    Indeed, I also cannot get either SendKeys or DoKeys to work using EP2 on my Windows 7 machine. In particular, I tried the following:

    Dim appID
    appID = Shell("Notepad.exe", ebNormalFocus)
    AppActivate appID, True
    SendKeys "Hello, Notepad."

    and got "Command failed" at the SendKeys line. Likewise, I tried

    Dim appID
    appID = Shell("Notepad.exe", ebNormalFocus)
    AppActivate appID, True
    DoKeys "Hello, Notepad."

    and this time got "Unsupported function or statement".

    Just for fun I then tried the following from E-Run in EP1:

    Sub Main()
    Dim appID
    appID = Shell("Notepad.exe", ebNormalFocus)
    AppActivate appID, True
    SendKeys "Hello, Notepad."
    End Sub

    In this case I got "Can't find window" at the AppActivate line.

    You should submit this to PST Support, and then write back here with their response.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk