SendKeys Question
Hello,
I want to implement the process of sending keystrokes to another window application in Eprime. So use the SendKeys function of the E-basic document. So I insert script in Inline with
"
AppActivate 56108
SendKeys "A"
"
However, when I run the Eprime program, I always get the error "Command failed". So I want to know how to solve this problem?
-
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 SubIn 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.
Please sign in to leave a comment.
Comments
1 comment