Jump to content
Sign in to follow this  
prog81

Inactive Window

Recommended Posts

prog81

Hello,

How do I make an inactive window active so that I may enter text. An example of this is a windows with a prompt to enter a file name to open eg... "File > Open".

Thanks. ;)

Share this post


Link to post
Share on other sites
LxP

How do I make an inactive window active so that I may enter text. An example of this is a windows with a prompt to enter a file name to open eg... "File > Open".

To add to SolidSnake's advice, if you plan to automate the text entry after activating the window then you should consider calling WinWaitActive() after WinActivate():

WinActivate('The Window')
WinWaitActive('The Window')
Send('This text now has a better chance of reaching The Window')

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.