ausbob Posted August 20, 2007 Share Posted August 20, 2007 Is it possible to send key strokes to other programs via a script in FM Link to comment Share on other sites More sharing options...
Inky Phil Posted August 20, 2007 Share Posted August 20, 2007 I very much doubt it. Phil Link to comment Share on other sites More sharing options...
Genx Posted August 20, 2007 Share Posted August 20, 2007 You could do it with vbscript... Link to comment Share on other sites More sharing options...
aholtzapfel Posted August 20, 2007 Share 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) Link to comment Share on other sites More sharing options...
ausbob Posted August 21, 2007 Author Share Posted August 21, 2007 thanks for your help this however looks a bit complicated for my limited knowledge in scripting Link to comment Share on other sites More sharing options...
Franco Posted October 12, 2007 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6043 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