Search found 19 matches

by BenRen
19 Mar 2023, 01:57
Forum: Scripts and Functions (v1)
Topic: [Class] LV_Colors - 1.1.05.00 (2024-03-16)
Replies: 151
Views: 72158

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

Is it possible to use LV_Colors with Autohotkey 2.0.2?
by BenRen
08 Mar 2023, 04:30
Forum: Ask for Help (v2)
Topic: Is it possible to have ListView items with a complex layout?
Replies: 7
Views: 653

Re: Is it possible to have ListView items with a complex layout?

Hi kczx3,
kczx3 wrote:
07 Mar 2023, 16:07
Hacked up version of some code I found years ago that mimics what you're asking for. Would need a ton of work.

[...]
thanks a lot! Not that I understand the code immediately, but it is a starting point for me and I will try to get it running the coming weekend.

Thanks again!
by BenRen
08 Mar 2023, 04:28
Forum: Ask for Help (v2)
Topic: Using the famous JSON.ahk lib with Autohotkey 2.0.2 Topic is solved
Replies: 2
Views: 1398

Re: Using the famous JSON.ahk lib with Autohotkey 2.0.2 Topic is solved

Hi ThePeter,
ThePeter wrote:
07 Mar 2023, 09:09
You could try this: https://github.com/TheArkive/JXON_ahk2
great, thank you a lot! The library works so far.
by BenRen
07 Mar 2023, 08:30
Forum: Ask for Help (v2)
Topic: Using the famous JSON.ahk lib with Autohotkey 2.0.2 Topic is solved
Replies: 2
Views: 1398

Using the famous JSON.ahk lib with Autohotkey 2.0.2 Topic is solved

Hello all, I was using the famous JSON.ahk ( https://github.com/cocobelgica/AutoHotkey-JSON ) library for a lot of my scripts. Now I migrate to Autohotkey 2 (version 2.0.2 installed) and my script can't load JSON.ahk anymore: image.png Using JSON.ahk version v2.1.3 (updated 04/18/2016). It seems the...
by BenRen
07 Mar 2023, 08:22
Forum: Ask for Help (v2)
Topic: Is it possible to have ListView items with a complex layout?
Replies: 7
Views: 653

Re: Is it possible to have ListView items with a complex layout?

Haven't seen this be done in AHK, but on AutoIt forums a handy UDF-library can be found. Thanks a lot for the link, mcl! So there is a working code for AutoIt, interesting. I do not have the experience and time to port or adopt this for Autohotkey. But nevertheless, great to have such a code to beg...
by BenRen
06 Mar 2023, 02:32
Forum: Ask for Help (v2)
Topic: Is it possible to have ListView items with a complex layout?
Replies: 7
Views: 653

Re: Is it possible to have ListView items with a complex layout?

Thanks for your replies, mikeyww and swagfag!

Yes, this takes exactly what I am not - an experience Win API programmer ;-) Hence my question, if there is any easy way in AHK. If it is not, that's totally okay and I have to think about other solutions.
by BenRen
05 Mar 2023, 16:40
Forum: Ask for Help (v2)
Topic: Is it possible to have ListView items with a complex layout?
Replies: 7
Views: 653

Is it possible to have ListView items with a complex layout?

Hello, I would like to create a GUI with a ListView (or ListBox?) where the items of that list have a more complex layout instead of just a line of text. The layout I desire is: +-------------------+ | +----+ Textline1 | | |ICON| Textline2 | | +----+ Textline3 | +-------------------+ In words: - An ...
by BenRen
30 Jul 2022, 04:46
Forum: Ask for Help (v1)
Topic: A window doesn't recognize my hotkey (VMware Workstation)
Replies: 1
Views: 315

A window doesn't recognize my hotkey (VMware Workstation)

Hello all, I use the simple hotkey F1:: centerWindow() return to center the current /active window on screen. This works well for almost all windows (I'm on Windows 10, Autohotkey 1.1.31.01), but not for "VMware Workstation". I understand that VMware Workstation itself captures keypresses to send it...
by BenRen
24 Mar 2020, 06:53
Forum: Ask for Help (v1)
Topic: Manipulate the columns (width/order) in the files detail view of Windows Explorer (Windows 10)
Replies: 1
Views: 350

Manipulate the columns (width/order) in the files detail view of Windows Explorer (Windows 10)

Hello, I would like to manipulate the columns in the files view (details view) of Windows Explorer (Windows 10), mainly change their width and order. I looked at the files view (the right side of the Windows Explorer) via WindowSpy and only saw the ClassNN "DirectUIHWND2", without any separate contr...
by BenRen
25 Sep 2015, 02:18
Forum: Ask for Help (v1)
Topic: Hotkey command and bound function in one line does not work ("nonexistent hotkey" error)
Replies: 2
Views: 973

Re: Hotkey command and bound function in one line does not work ("nonexistent hotkey" error)

Hello trismarck, It's because of the following: [v1.1.20+]: If not a valid label name, this parameter can be the name of a function, or a single variable reference containing a function object. For example, Hotkey %funcobj%, On or Hotkey % funcobj, On. Other expressions which return objects are curr...
by BenRen
24 Sep 2015, 01:55
Forum: Ask for Help (v1)
Topic: Hotkey command and bound function in one line does not work ("nonexistent hotkey" error)
Replies: 2
Views: 973

Hotkey command and bound function in one line does not work ("nonexistent hotkey" error)

Hello, I came across the following behavior, and I can't explain it. Please, see this small example: class CClass { start() { showMsgBoxBoundFunc := this.showMsgBox.Bind( this ) Hotkey % "#c", % showMsgBoxBoundFunc } showMsgBox() { MsgBox % "showMsgBox()" } } myClass := new CClass() myClass.start() ...
by BenRen
23 Sep 2015, 05:18
Forum: Ask for Help (v1)
Topic: Calling a function object and a class method dynamically
Replies: 9
Views: 4355

Re: Calling a function object and a class method dynamically

Thanks for further explanation, Lexikos!
by BenRen
23 Sep 2015, 02:42
Forum: Ask for Help (v1)
Topic: Calling a function object and a class method dynamically
Replies: 9
Views: 4355

Re: Calling a function object and a class method dynamically

because when you define a object method with this syntax, the object itself is passed as the first parameter. therefore, your parameter list is messed up, and your param1 is in fact containing a reference to MyObject see http://ahkscript.org/docs/Objects.htm#Custom_Prototypes Ah ok, I see. Now I un...
by BenRen
22 Sep 2015, 16:07
Forum: Ask for Help (v1)
Topic: Calling a function object and a class method dynamically
Replies: 9
Views: 4355

Re: Calling a function object and a class method dynamically

Hello, The most simplest way is to "restrict" the object(s) passed to CTestClass.callMyFunction() to be function objects ( Func(FunctionName) , FuncObj.Bind(args*) , ObjBindMethod(obj, method, args* ) or a custom object(Functor) as demonstrated in the documentation) only. That is to not perform too ...
by BenRen
22 Sep 2015, 12:02
Forum: Ask for Help (v1)
Topic: Calling a function object and a class method dynamically
Replies: 9
Views: 4355

Calling a function object and a class method dynamically

Hello, I have a class method which takes a parameter, which is an object on which I want to call a method. There is also the case, when the given object is a function object I want to call, using the ".Call(...)" function - now I would like to detect the kind of reference and using ".Call(...)" only...
by BenRen
22 Sep 2015, 11:43
Forum: Ask for Help (v1)
Topic: Address of class instance (object)?
Replies: 2
Views: 762

Re: Address of class instance (object)?

Hello HotKeyIt, Because the object is deleted after printAddress run, so when it is created in second call it uses same address for that object. As you see here second call gets a different address: testClass.printAddress( new CTestClass() ) obj:=[] testClass.printAddress( new CTestClass() ) yes of ...
by BenRen
22 Sep 2015, 06:28
Forum: Ask for Help (v1)
Topic: Address of class instance (object)?
Replies: 2
Views: 762

Address of class instance (object)?

Hello, I came across a small curiosity when I wanted to get the address of an object in AHK (class instance). I have this small class to print the address of the given object: class CTestClass { printAddress( obj ) { MsgBox % &obj } } When I now run this... testClass := new CTestClass() testClass1 :...
by BenRen
19 Sep 2015, 07:46
Forum: Ask for Help (v1)
Topic: Setting base class property in '__New' of child class
Replies: 2
Views: 1336

Re: Setting base class property in '__New' of child class

Hello Lexikos, Basically, I think you probably meant to simply do this.name := "ChildClass" . yes you are right - this is what I really meant to do :-) Using "this.name" works like I expected. name := "unknown" in the class body just instructs the class to perform that assignment on each new instanc...
by BenRen
19 Sep 2015, 03:07
Forum: Ask for Help (v1)
Topic: Setting base class property in '__New' of child class
Replies: 2
Views: 1336

Setting base class property in '__New' of child class

Hello, I would like to set a property of the base class in the constructor (__New) of its child class, like so: class BaseClass { name := "unknown" start() { MsgBox % this.name } } class ChildClass extends BaseClass { __New() { base.name := "ChildClass" } start() { base.start() } } childClass := new...

Go to advanced search