Jump to content
Sign in to follow this  
Wagwan

How to make AutoIT stay focused on the same Window

Recommended Posts

Can someone point me in the right direction?

I want my scrip to keep running when I click outside the focus window. How can I permanently tie the script to a specific window?

Any examples would be great. 

Thanks

Share this post


Link to post
Share on other sites

There is multiple ways to achieve that.  Stay on top window style is one.  You could also trap the mouse within the window borders. You could have a loop check if you lost control.  You could have a message handler to catch lost of focus....Start with one strategy that you are confortable with, make a script and then tell us where you hit a wall.

Share this post


Link to post
Share on other sites

More specifically, what I meant, is there a way to have a script doing something in one window while I work in another without the script starting in what ever application I swap to? 

Share this post


Link to post
Share on other sites

You can either send keys and clicks to non-active windows or you can send and click on an active window.

Both use caes are typically solved by different functions.

So, what do you really want to do?


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...