Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#594 closed Feature Request (Rejected)

wintitlematchmode

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

Description

This is really a two part request.
I believe WinTitleMatchMode should actually be a parameter on all of the Window management functions. Why? I came across a situation that I didn't realize was happening where one of the many window titles I am working with in my script slightly changes dependent on a file being opened or the state of the app (I generally like to keep the mode on 3). Now I know you can just insert the WinTitleMatchMode function in front and behind the particular Window function you are calling in order to remedy this, but I believe it would be very convenient, clean, concise, and intuitive to just have the optional parameter extended into the window management functions. Ex. WinActivate ( "title" [, "text"[, "match = 1"]]). And it wouldn’t break anything. This way you don’t have to have a universal WinTitleMatchMode and constantly inserting it every time you need to change it. I'm making my own functions like this for the time being, but I think this would be a great help to all.
The second portion of my request is to the Control functions in the window management functions. I think that control functions should follow the logic of the window function with the WinTitleMatchMode just to make things easier, and also include the WinTitleMatchMode optional parameter in them as well. All for the same reason and also to get rid of the need for WinGetTitle().

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by Valik

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

While in theory I can agree that specifying the match mode on a per-call basis would be superior, it's too late in the game for that. It's also a lot of work at this point for virtually no gain. Further, the match modes are largely redundant with the advanced window descriptions. For example, I believe that using the TITLE property is the same as doing an exact match (mode 3). Modes 1 and 2 can be achieved by the REGEXPTITLE depending on how you specify the pattern (it's not complex to do basic anchored/substring matching). Lastly you should be operating on HWND's as much as possible and not using anything else. I use the advanced descriptors in a call to WinGetHandle() to get the handle to the window which I use from then on.

Basically, everything I just said also applies to controls.

comment:2 Changed 16 years ago by TicketCleanup

  • Version 3.2.12.0 deleted

Automatic ticket cleanup.

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.