Sign in to follow this  
Followers 0
NextEpisode1

Hidden window class

11 posts in this topic

First of all hello. I'l get directly to the subject.

I need to send clicks on a certain button in a minimized window. I tried doing that using

the ControlClick() function,

BUT: it seems that this particular window has it's class hidden (AutoIt info when i comes to control tab goes blank, no class, no instance, coords etc etc)

The window described is YourFreedom aplication , by the way same thing with winamp.

Is there other way to figure out a class name, or maybe another method to use?

Thanks.

Share this post


Link to post
Share on other sites



Share this post


Link to post
Share on other sites

I did , google knows everything, but it's not as common as you think, (lost 4 hours googling lol)still no topic found.

thx for feedback

Share this post


Link to post
Share on other sites

BTW. To be more explicit here is my AutoitInfo. I got everything i need except class and instance.

>>>> Window <<<<

Title: Your Freedom

Class: SunAwtFrame

Position: 510, 9

Size: 646, 508

Style: 0x16CA0000

ExStyle: 0x00000100

Handle: 0x00030734

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle: 0x0002026A

>>>> Mouse <<<<

Position: 621, 283

Cursor ID: 2

Color: 0xEEEEEE

>>>> StatusBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

Share this post


Link to post
Share on other sites

the script that does that is already done but it's damn annoying ,

Share this post


Link to post
Share on other sites

Have you had a look at WinGetHandle yet?

hmm...noob question now, how can the handle help me rung clicks while minimised?

i got only 1 YF window active,always in the same place ,same dimensions, but

winactivate + mouseclick is not what i'm trying to accomplish.

and thanks for your time,i appreciate.

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

No Worries, I'm a noob too... may look something like this:

; Change into the WinTitleMatchMode that supports classnames and handles
AutoItSetOption("WinTitleMatchMode", 1)

; Get the handle of your window that contains (see below)
$handle = WinGetHandle("SunAwtFrame", "some text in this window")

If @error Then
    MsgBox(4096, "Error", "Could not find the correct window")
Else
    ; Send commands directly to any given control
    ControlClick($handle, "", "some control ID", "")
EndIf

I'm still plain' with it though

Edited by billo

Share this post


Link to post
Share on other sites

I did , google knows everything, but it's not as common as you think, (lost 4 hours googling lol)still no topic found.

thx for feedback

After being here for 4 years I can say that the problem with automating windows without control Ids etc is very common. A quick forum search sent me to 3 topics (on the first page) that had useful information.

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