ausbob Posted August 20, 2007 Posted August 20, 2007 Is it possible to send key strokes to other programs via a script in FM
aholtzapfel Posted August 20, 2007 Posted August 20, 2007 Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.AppActivate "WindowName" 'Replace WindowName with the name of your window WScript.Sleep 1000'wait WshShell.SendKeys "sendthis{Enter}" saved as .vbs I don't suggest this unless the is no alternative. (almost always another way.) a user can steal the focus from the script, Is very hard to capture errors. The sendkey command should only be used as a last resort. Having said that I have used it with some success. Depending on the enviroment it is running in and a important the script is, you can add alot to the script that can make it run more reliably but I have never done this and made it run flawlessly. (If I'm the only one running it, no problem)
ausbob Posted August 21, 2007 Author Posted August 21, 2007 thanks for your help this however looks a bit complicated for my limited knowledge in scripting
Franco Posted October 12, 2007 Posted October 12, 2007 try autoit version 3, it is a very simple basic like, there is a very big forum were you can find what you want, also it is possible to compile the script you have done.
Recommended Posts
This topic is 6295 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now