Modify

Opened 18 years ago

Closed 18 years ago

#293 closed Bug (No Bug)

using CLASS and TEXT together...

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.0 Severity: None
Keywords: Cc:

Description

there was fix in this issue with v3.2.10.0.
(Fixed: Control...() functions using CLASS and TEXT together sometimes incorrect.)

In my case there was no problems with v3.2.8.1, but when I update autoit to v3.2.12.0 today, several ControlClick() functions that using CLASS and TEXT together are not woking, so I had to remove all "TEXT:xxx" in my scripts.

Here is one of them not woking.

ControlClick($handle, "", "[CLASS:Button; TEXT:&Move; INSTANCE:10]")

thanks.

Attachments (0)

Change History (5)

comment:1 by Jon, 18 years ago

That's because the bug caused instance to be ignored. In your example what you are actually asking AutoIt to look for is the 10th instance of a "Button" class with the text "&Move". I'm guessing you are not looking for the 10th instance. :)

in reply to:  1 comment:2 by anonymous, 18 years ago

Replying to Jon:

That's because the bug caused instance to be ignored. In your example what you are actually asking AutoIt to look for is the 10th instance of a "Button" class with the text "&Move". I'm guessing you are not looking for the 10th instance. :)

it's by Au3Info.

comment:3 by Jon, 18 years ago

No, Au3info never shows an advanced description that uses those 3 together.

You either want "[CLASS:Button; INSTANCE:10]" or "[CLASS:Button; TEXT:&Move]".

in reply to:  3 comment:4 by anonymous, 18 years ago

Replying to Jon:

No, Au3info never shows an advanced description that uses those 3 together.

You either want "[CLASS:Button; INSTANCE:10]" or "[CLASS:Button; TEXT:&Move]".

Aren't you read help?

"e.g. Click the 2nd instance of a "Button" control containing the text "Finish"

ControlClick("My Window", "", "[CLASS:Button; TEXT:Finish; INSTANCE:2]")"
-from help file.

comment:5 by Jon, 18 years ago

Resolution: No Bug
Severity: None
Status: newclosed

I wrote the help.

You want the FIRST instance of a "Button" class containing the text "&Move". OR the 10th instance of a "Button" class.

Working as intended. No bug.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.