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)
follow-up: 2 comment:1 by , 18 years ago
comment:2 by , 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.
follow-up: 4 comment:3 by , 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]".
comment:4 by , 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 , 18 years ago
| Resolution: | → No Bug |
|---|---|
| Severity: | → None |
| Status: | new → closed |
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.

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. :)