Progress2 - class for an easy progress bar - 2021/06/21 - beta.1

Post your working scripts, libraries and tools.
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Progress2 - class for an easy progress bar - 2021/06/21 - beta.1

Post by TheArkive » 19 May 2020, 14:50

I noticed that AHK2 didn't have any kind of Progress command, so I made one. This class is pretty straight forward. Feel free to post feedback, bugs, etc.

Example is included at the top, just uncomment it.

I'll expand this as I come across other things I want a progress bar to do.

=====================================================================================
Updates
=====================================================================================

:arrow: Download on GitHub
Last edited by TheArkive on 25 Jul 2021, 04:12, edited 14 times in total.
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Progress2 - class for an easy progress bar - 2021/01/21 - a122

Post by TheArkive » 21 Jan 2021, 16:17

Update 2021/01/21:
  • Added range and title parameters to .Update() method.
    Now you can update the range and title of the progress bar on the fly, handy for reusing the progress bar to show multiple stages of progress, instead of destroying/recreating the window with each stage. See docs for details.
  • Added .Range() and .Title() methods for changing the range and the title. See docs for details.
  • Added property AlwaysOnTop. Specify "AlwaysOnTop:1" in the options string during progess2.New() to enable this mode. Check comments/docs for details.
  • Updated docs.
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Progress2 - class for an easy progress bar - 2021/03/08 - a128

Post by TheArkive » 08 Mar 2021, 07:42

2021/03/08
  • changed Gui.New() to Gui()
  • added &VarRef where needed
  • fixed up example to not throw error on repeated button clicks
  • fixed up __Delete() to automatically run this.close(), and removed this.__Delete() from this.close()
  • changed .Title() to .SetTitle()
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Progress2 - class for an easy progress bar - 2021/06/21 - a137

Post by TheArkive » 21 Jun 2021, 07:07

2021/06/21
  • added option for a cancel button: Cancel:1
    coder checks obj.abort property for status if cancel has been clicked or not, and then decides how to handle it
  • moved to github
  • tested and working on a137
Post Reply

Return to “Scripts and Functions (v2)”