Jump to content
Sign in to follow this  
Raskus

Getting Coordinates within a Window

Recommended Posts

Raskus

I'm currently trying to automate a simple browsing program that will continually skip through images on a site in the background while I'm doing other things on my computer. I know there are simpler alternatives like Tab + Enter to skip to the next image but something that really irked me was getting controlclick to work properly. I've searched up and down and can't find a straight forward way to get coordinates(static) within a window. I want to be able to move the window around,minimize it possibly, etc. Are there any simple scripts or commands for getting window coordinates?

Share this post


Link to post
Share on other sites
Omga4000

If I'm not mistaken, "Au3Record.exe" does that exactly.

you can find it in:

C:\Program Files\AutoIt3\Extras\Au3Record

Give it a try :mellow:

Share this post


Link to post
Share on other sites
wakillon

Look at WinGetPos and WinMove


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
Raskus

Thanks so much guys. I'll check it out.

Share this post


Link to post
Share on other sites
Raskus

Eh, It gives mouse coords in relation to the desktop, not the active window. This really is a pain, you'd think it would be such a simple thing to find out xD.

Share this post


Link to post
Share on other sites
wakillon

Eh, It gives mouse coords in relation to the desktop, not the active window. This really is a pain, you'd think it would be such a simple thing to find out xD.

WinGetPos Retrieves the position and size of a given window.


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
AdmiralAlkex

Eh, It gives mouse coords in relation to the desktop, not the active window. This really is a pain, you'd think it would be such a simple thing to find out xD.

AU3Info

Share this post


Link to post
Share on other sites
Raskus

Yeah guys, controlclick seems to be the issue. It's just not clicking the window, inactive or active. Thanks for the help though, I learned a few things thanks to you.

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  

×