Search found 12 matches

by buliasz
21 Jul 2020, 19:49
Forum: Gaming
Topic: Slow script; long if else statements and PixelGetColor. Can anyone help?
Replies: 19
Views: 1744

Re: Slow script; long if else statements and PixelGetColor. Can anyone help?

If you want really fast PixelGetColor function you can use my Gdip_Toolbox.ahk with Gdip adapted to AHKv2. Here is my GitHub fork Gdip sources: https://github.com/buliasz/AHKv2-Gdip Just download those two files: Gdip_All.ahk and Gdip_Toolbox.ahk , include Gdip_Toolbox.ahk and use the GetPixelColorB...
by buliasz
27 Jun 2020, 20:05
Forum: AutoHotkey v2 Help
Topic: GuiObject __Item documentation needs update Topic is solved
Replies: 2
Views: 1790

Re: GuiObject __Item documentation needs update Topic is solved

Oh... you are right!
I've misunderstood the new logic of Gui :)
Sorry for false alarm.
by buliasz
23 Jun 2020, 23:10
Forum: AutoHotkey v2 Help
Topic: GuiObject __Item documentation needs update Topic is solved
Replies: 2
Views: 1790

GuiObject __Item documentation needs update Topic is solved

In the documentation (build a112) for the GuiObject there is this part: __Item Retrieves the GuiControl object associated with the specified name, text, ClassNN or HWND. GuiCtrlObj := Gui[Name] But it actually doesn't work. One of Gui.Add options parameters is this: V: Sets the control's Name. Speci...
by buliasz
31 Oct 2019, 19:29
Forum: AutoHotkey v2 Development
Topic: Map shorthand
Replies: 38
Views: 8915

Re: Map shorthand

In my opinion "key": "value" syntax is most readable one for maps (with colon in the middle), so I would use something like this:

Code: Select all

map := [
	"key1" : "value1",
	"key2" : "value2",
	...
]
Or this:

Code: Select all

map := Map() {
	"key1": "value1",
	"key2": "value2",
	...
}
by buliasz
05 Aug 2018, 14:02
Forum: Ask For Help
Topic: Volume Control on PC Windows 10
Replies: 38
Views: 27278

Re: Volume Control on PC Windows 10

Just in case someone looks for AHK v.2 version of a volume control code. This one uses system maintenance of Volume keys, but you can simply adjust it to increase/decrease volume in your selected granularity, just by using for example SoundSet("+1") or SoundSet("-1") (for granularity 1) instead of t...
by buliasz
29 Jan 2018, 04:15
Forum: AutoHotkey v2 Development
Topic: Object declaration syntax Topic is solved
Replies: 20
Views: 4516

Re: Object declaration syntax Topic is solved

That was quick! Thanks.
by buliasz
28 Jan 2018, 15:43
Forum: AutoHotkey v2 Development
Topic: Object declaration syntax Topic is solved
Replies: 20
Views: 4516

Re: Object declaration syntax Topic is solved

In v2.0-a087 new bug appeared. It was not easy to reproduce, as it appears only in included files ( #include file.ahk ), and surprisingly it doesn't appear in the main runned .ahk file. Here is example code, which will result with an error on script start-up, with the message: "Error: Functions cann...
by buliasz
23 Jan 2018, 17:54
Forum: AutoHotkey v2 Development
Topic: Object declaration syntax Topic is solved
Replies: 20
Views: 4516

Re: Object declaration syntax Topic is solved

After last update this code won't compile:

Code: Select all

class MyClass {
	__New(paramA, paramB) {
	}
}
It shows error: "Error: Not a valid method, class or property definition."
I need method called on new object creation. How can I do it now?
by buliasz
20 Dec 2017, 18:59
Forum: Ask For Help
Topic: Sort Objects with respect to the value of a specific key
Replies: 4
Views: 1188

Re: Sort Objects with respect to the value of a specific key

You might also find useful my function which preforms QuickSort on array of objects. Passing in second argument your own comparison function you can sort by any field you want.
Here's the code: https://github.com/buliasz/AHK_quicksor ... _array.ahk
by buliasz
22 Mar 2017, 11:39
Forum: Ask For Help
Topic: byref param clarification
Replies: 3
Views: 922

Re: byref param clarification

While I understand the reason, why it isn't working currently, I hope it will be done some day, because it is little confusing for people accustomed to OOP, that object members are not working with ByRef. Anyway currently my proposition is to make warning (for example when #Warn All is used) when so...
by buliasz
25 Jan 2017, 15:27
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 373
Views: 138488

Re: GDI+ standard library 1.45 by tic

In case someone needs it, I've modified Gdip_All.ahk of mmikeww (guest3456) which work with AHK 2.0+ also. I made one bugfix and made additional little changes, so that it can now be used with the "#Warn All" flag enabled. Surely there are more changes needed for "#Warn All", but they appear only wh...

Go to advanced search