Raskus Posted August 14, 2011 Posted August 14, 2011 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?
Omga4000 Posted August 14, 2011 Posted August 14, 2011 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
wakillon Posted August 14, 2011 Posted August 14, 2011 Look at WinGetPos and WinMove AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Raskus Posted August 14, 2011 Author Posted August 14, 2011 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.
wakillon Posted August 14, 2011 Posted August 14, 2011 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.0 - WIN 8.1 X64 - Other Example Scripts
JohnOne Posted August 14, 2011 Posted August 14, 2011 MouseCoordMode is something you ought to look at. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
AdmiralAlkex Posted August 14, 2011 Posted August 14, 2011 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 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Raskus Posted August 14, 2011 Author Posted August 14, 2011 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now