Sign in to follow this  
Followers 0
WhiteAvenger

Click relative to window

5 posts in this topic

Hi,

In the Window Info tool, I just saw that you can have mouse coords given relative to the active window instead of the whole screen.

This made me wonder: Can I make a mouseclick at a certain position in a window, rather than the whole screen? I.e. click at 300,50 inside the "notepad" window, rather than having to click at 457,82 inside the whole screen?

Thx

--WhiteAvenger

Share this post


Link to post
Share on other sites




[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

AutoIt Window Info tool is located inside autoit installation directory:

C:\Program Files\AutoIt3\Au3Info.exe


My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites

Not very... I don't want to know where a Control object is, I want to click a certain position inside a window. This means that I want to, for example, always click on a certain pixel in a colour selection field, regardless of where the window with the selection field is.

So whether the window is at 0,0 or at 124,634, I always want to click at 72,33 within this window.

AutoIt Window Info tool is located inside autoit installation directory:

C:\Program Files\AutoIt3\Au3Info.exe

TLDR?

This has no connection whatsoever to what I asked... :-S

Share this post


Link to post
Share on other sites

First way:

Opt("WinTitleMatchMode", 2)

$pos = WinGetPos("Notepad")
$x = 300
$y = 30

WinWaitActive("Notepad")
MouseClick("left", $pos[0] + $x, $pos[1] + $y)

Second way:

ControlCick butnot exactly what you looking for.

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  
Followers 0