Circle progress bar

Post your working scripts, libraries and tools
Posts: 1317
Joined: 30 Sep 2013, 22:25

Re: Circle progress bar

02 Apr 2015, 14:08

Learning one wrote:FanaticGuru, I don't get such errors...
I imagine you do a #include <Gdip> in your script.

I typically don't do that. I generally just make sure I do a pToken := Gdip_Startup() before I start calling any other functions. After you call one library function all functions in the library are callable even if they do not follow the library naming convention.

Hotkey Help - Help Dialog for Currently Running AHK Scripts

AHK Startup - Consolidate Multiply AHK Scripts with one Tray Icon

[Function] Timer - Create and Manage Timers
Posts: 578
Joined: 01 Oct 2013, 02:50

Re: Circle progress bar

02 Apr 2015, 14:15

But this is a doughnut progress! :morebeard: :lol:
How about a class for a wheel with wedges like in Chrome download?
User avatar
Learning one
Posts: 125
Joined: 04 Oct 2013, 13:59
Location: Croatia

Re: Circle progress bar

02 Apr 2015, 16:23

Bruttosozialprodukt, OK ;)
FanaticGuru, yes I always use #Include LibFullPathHere.ahk in my scripts
Guest10, I'm not sure what do you have on mind... can you show me what do you imagine - how would progress bar loading look in such "Chrome's wheel with wedges" style?

toralf, I just tried to include WM_LBUTTONDOWN monitoring in the class itself, but I never did that before and it seems I don't know to do it :(
I put this in __New():

Code: Select all

if (this.UseClickThrough=0)	; so it's clickable - therefore enable click & drag and handle that via WM_LBUTTONDOWN() method
	OnMessage(0x201,  this["WM_LBUTTONDOWN"])
Now, if i make WM_LBUTTONDOWN(wParam, lParam, msg, hwnd) method, i'll get error because it requires 5 parameters; (4 +1 hidden; this) and this is documented in OnMessage(): "Failure occurs when Function is known to require more than four parameters"

If I just make WM_LBUTTONDOWN() method (no params) I can't make use of it because this.hwnd returns blank value

Code: Select all

;class CircleProgressClass {	
		MsgBox % this.hwnd	; returns blank value!
		if (this.hwnd = A_Gui) {
			PostMessage, 0xA1, 2
			KeyWait, LButton
			WinGetPos, x,y,,, % "ahk_id " this.hwnd
			this.x := x, this.y := y	; update coords			
		;	ToolTip, Not CircleProgressClass gui ; that is not one of GUIs we want to monitor - do nothing
I could do something like OnMessage(0x201, Func("CircleProgressClass_WM_LBUTTONDOWN")) but I think that's the wrong approach...
Any advices? How to monitor WM_LBUTTONDOWN message in the class?

Edit: I asked for help here
Last edited by Learning one on 02 Apr 2015, 19:08, edited 3 times in total.
Posts: 578
Joined: 01 Oct 2013, 02:50

Re: Circle progress bar

02 Apr 2015, 16:28

A small wheel with wedges appears in Chrome browser when I download something and it is a small progress indicator that appears on the lower-left corner of my Chrome book during downloads.
User avatar
Posts: 6874
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec

Re: Circle progress bar

02 Apr 2015, 22:08

Another Problem solved :)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 3.00 GHz, 16GB DDR4 3200 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 23 guests