Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6295 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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)

  • 1 month later...
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.