Jump to content

Recommended Posts

Posted

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.

Posted
Posted

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

Posted

  On 3/19/2010 at 4:41 PM, 'billo said:

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.

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
Posted

  On 3/19/2010 at 1:55 PM, 'NextEpisode1 said:

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...