Modify

Opened 8 years ago

Last modified 2 years ago

#3641 assigned Feature Request

Allow ProgressOn function to return window handle of the progress dialog it creates

Reported by: TimRude Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: ProgressOn Cc:

Description

Presently, the ProgressOn function has no return value.

It would be quite useful if the function returned the window handle of the progress dialog it creates. That would allow programmatically interacting with the Progress dialog using functions such as WinGetPos, WinMove, WinSetTrans, etc.

This would not break existing scripts since no scripts are currently expecting a return value from ProgressOn and those who don't want to use it can simply continue to ignore it.

Attachments (0)

Change History (4)

comment:1 by BrewManNH, 8 years ago

The ProgressOn function is a very basic splash screen with progress bar. Getting the handle of it should be simple enough, or you could just build your own so you have absolute control over it. There are examples in the forum of DIY splash screens with progress bars.

comment:2 by TimRude <timrude@…>, 8 years ago

Yes, it is fairly simple to get the handle of it using something like WinGetHandle("[TITLE:blah blah blah; CLASS:AutoIt v3]").

But what would be the harm of having the function call simply return the handle of the dialog? Then you wouldn't have to futz around with looking for the window, making sure in code that you update the title text in the WinGetHandle call if you update it in the ProgressOn call, or wonder if maybe there's another AutoIt process that spawned a progress dialog with the same title (unlikely, but not entirely impossible).

Since there's currently no return value from the ProgressOn function, this would be a useful addition with no negative impact on existing code whatsoever.

comment:3 by J-Paul Mesnage, 5 years ago

Owner: set to J-Paul Mesnage
Status: newassigned

Fix sent to Jon

comment:4 by J-Paul Mesnage, 2 years ago

Owner: changed from J-Paul Mesnage to Jon

Modify Ticket

Action
as assigned The owner will remain Jon.

Add Comment


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