It might not be the cleanest way to do so, but I know for sure that you can use the Shell Command, and then for passing parameters, could use use the SendKeys command?
How are you using SendKeys? Can you paste your code here, maybe there's a typo or syntax error...
For instance, If I wanted to send keystrokes to Notepad, and already have a document open which says "Untitled - Notepad" in the menu bar, I could do this:
Code:
AppActivate "Untitled - Notepad"
SendKeys "Hello, world!"
SendKeys "{ENTER}"
SendKeys "{ENTER}"
SendKeys "That was two carriage returns!"
Of course, you can also tell how many times to send a particular string or character, as well.
Also, if it seems to buggy in your particular application, you can try using the MySendKeys API call function which Dev Ashish posted on his Microsoft MVP website. Just do a google search for MySendKeys, and it should be the 1st or 2nd link.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.