Sign in to follow this  
Followers 0
lottafreetime22

Au3 win info as commands?

5 posts in this topic

I'll release my prog as a UDF when i'm done. First i need help with this:

i need something that can return the window under the mouse - without activating it, and without moving any or minimizing any open windows. how does the autoit window info tool do this? i'll explain why i want this after i write the program. B)

I've checked the autoit help file, no commands relating to this at all.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I'll release my prog as a UDF when i'm done. First i need help with this:

i need something that can return the window under the mouse - without activating it, and without moving any or minimizing any open windows. how does the autoit window info tool do this? i'll explain why i want this after i write the program. B)

I've checked the autoit help file, no commands relating to this at all.

not sure if this will help, but at least you can get the name of ALL the windows. if you know what names you DONT want you can check for the new name against them or something.

WinList ( ["title" [, "text"]] )

If no title and text is given then all top-level windows are returned.

The array returned is two-dimensional and is made up as follows:

$array[0][0] = Number of windows returned

$array[1][0] = 1st window title

$array[1][1] = 1st window handle (HWND)

$array[2][0] = 2nd window title

$array[2][1] = 2nd window handle (HWND)

...

$array[n][0] = nth window title

$array[n][1] = nth window handle (HWND)

also on windows xp at least... there is a tooltip that tells you the window when you hover the mouse over them when they are minimized in the task bar

maybe that can help you.

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

you need the window under the mouse if its active or not?

the autoitwindow-info is only getting the active window

maybe you can combine

$a = winlist("")
dim $b[100]
for $i = 1 to $a[0][0] step 1
$b[$i] = wingetpos ($a[$i][0])
next

the coordinates should be stored in the several $b's

then you can check where the mouse is

$c = mousegetpos()

the rest is up to you

problem is overlapping windows & maximized windows

Share this post


Link to post
Share on other sites

hmm no way to have it:

1) check window positions + sizes + states (minimized etc)

2) check mouse pos

3) compare to find window under mouse

Share this post


Link to post
Share on other sites

The AutoIt Window Info tool only gives information on the window that is active. Like Nuffilein805 said.

If you are wanting something else then you will need to write another UDF to do that for you, but it is impractical.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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