Jump to content

Can window cordinates be auto generated into script?

Recommended Posts

Hi I'm new to autoit.

The program I'm trying to write a script for I usually have in windowed mode and I move the window around quite often, wondering if theres a way to auto detect the corners of it and automate it into pixel search when script is activated? I saw a few function references like WinGetPos and WinGetClientSize that sounded like they might do it, but then I don't know how to generate it in the script without editing. Is this possible?

Link to post
Share on other sites
46 minutes ago, CoconutFlake said:

I don't know how to generate it in the script without editing

I'm not sure what you mean by this; but to answer (what I think) your question is, can you track an application window size and location dynamically, yes.

Those functions you listed would make for a good starting point.  the help file has examples you can check out and play with. 

Let us know where you get stuck.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...