Modify

Opened 16 years ago

Closed 16 years ago

#561 closed Bug (Duplicate)

WinWait and similar functions fails if in TITLE parameter there is form caption and after that CLASS name description (in that order)

Reported by: blackgilmor@… Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.0 Severity: None
Keywords: WinActice Title Class name check Cc: blackgilmor@…

Description

WinWain function, and other similar, fails when in title parameter is typed "[TITLE:SomeName;CLASS:TfSomeName]" (in that order).
Class name parameter isn't checked so if there is any other opened form with caption "SomeName", or runs any application called "SomeName", function WinWait will finish with positive result, even if class name of that form/app is different than TfSomeName.
If WinWait parameters will be typed in different order:
"[CLASS:TfSomeName;TITLE:SomeName]"
there is no problem.

Test case:
I'm submiting very simple app with two forms: MainForm and SomeName form. SomeName form is being created, just after mouse click on button on MainForm. My app is named SomeName, so when you will be run my WrongTestScript.au3 you will get message box before mouse click on button on main form.
When you will be executing WellTestScript.au3, this message will appear only after mouse click on that button, which is correct.

Attachments (0)

Change History (1)

comment:1 Changed 16 years ago by Jpm

  • Resolution set to Duplicate
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.