Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#289 closed Feature Request (Rejected)

GuiSetTitle

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

Description

Maybe I just missed it but I can't find something like GuiSetTitle. I mean: With this function you can directly set the title of one of your own created windows using just its winhandle.

Somthing like

$winhandle1 = GuiCreate("first title")
$winhandle2 = GuiCreate("unused title")
GuiSetTitle($winhandle1, "new title")

You know what I mean?

Attachments (0)

Change History (5)

comment:1 Changed 17 years ago by TicketCleanup

  • Version 3.2.10.0 deleted

Automatic ticket cleanup.

comment:2 Changed 17 years ago by WeaponX

We already have it, its called WinSetTitle()

comment:3 Changed 17 years ago by Valik

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

WeaponX is right, closing as Rejected.

comment:4 Changed 17 years ago by Jayowee

I know WinSetTitle(). But that is not what I mean.
WinSetTitle() uses the old/current title of any window, and is therefore "title-sensitive". But I want a function with wich I can retitle a window using just its winhandle. And WinSetTitle() can do nothing wit winhandles, can it?
You see, I'm getting tired of retitling my own windows having to use (read: look up) the old/current title.
Since GUI windows usally have a handle assigned to it, it should give no major problems creating a function like this, does it not? Especially inside one of your own scripts...
Here's an example of what I mean:

$MyWindow = GuiCreate("My window")
...script...
GuiSetTitle($MyWindow, "My new title")

P.S. If enybody brings up WinGetHandle, I would like to remind him/her that there still is no function capable of using that handle, is there?

comment:5 Changed 17 years ago by Valik

Here's a thought or three. Have you even *tried* to use the HWND in WinSetTitle()? In fact, have you even bothered to look at the documentation for WinSetTitle() or virtually any other Win* function in general? Have you bothered to read the link which explains how to specify windows? The answer to these 3 questions is clearly "no". You're about 3 years behind on learning that you can pass an HWND to Win* functions. I suggest re-reading the documentation at least once every 3 years.

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.