Search found 21 matches

by stretch65
16 Feb 2023, 00:59
Forum: Ask for Help (v2)
Topic: Binding Parameters?
Replies: 4
Views: 636

Binding Parameters?

Please consider the following: Class XX { static doIt(key, *) { Send key } } Class YY { ;static cmd := ObjBindMethod(XX, 'doIt', '^b') ; works ;static cmd := XX.doIt.Bind(, '^b') ; works static cmd := Send.Bind('^b') ; NOT Woring? } AppsKey & g:: { YY.cmd() } In the above, the first 2 ways of bindin...
by stretch65
23 Dec 2022, 20:50
Forum: Ask for Help (v2)
Topic: Listview LVM_SETHOVERTIME ?
Replies: 2
Views: 394

Re: Listview LVM_SETHOVERTIME ?

Thanks a lot!
by stretch65
23 Dec 2022, 20:47
Forum: Ask for Help (v2)
Topic: ListView Columns
Replies: 2
Views: 454

Re: ListView Columns

Thanks very much.
by stretch65
23 Dec 2022, 00:23
Forum: Ask for Help (v2)
Topic: Listview LVM_SETHOVERTIME ?
Replies: 2
Views: 394

Listview LVM_SETHOVERTIME ?

Hi, The documentation says that the extended style/setting 'LVM_SETHOVERTIME' can be used to alter the time it takes for the row selection to change in a listview when the mouse hovers over it. Can someone give me an example of how to alter this setting? Currently, the row selection changes very slo...
by stretch65
22 Dec 2022, 23:31
Forum: Ask for Help (v2)
Topic: ListView Columns
Replies: 2
Views: 454

ListView Columns

Hi,

If I click a particular row & column in a listview, I can obtain the row clicked.
Is it possible to determine the column that was clicked?
by stretch65
24 Nov 2022, 22:35
Forum: Ask for Help (v2)
Topic: ListView Sizing
Replies: 1
Views: 382

ListView Sizing

Hi, I have this tool window to which I've added a listview containing 2 columns. When the GUI is shown I was expecting the listview to be sized so that only the 2 columns are visible. But there's a lot of extra space to the right of the listview's last column which I can't seem to get rid of. See th...
by stretch65
19 Nov 2022, 22:32
Forum: Ask for Help (v2)
Topic: ListView Events
Replies: 1
Views: 350

ListView Events

Hi, I was wondering if I can make any assumptions regarding the order in which events are called on listviews? For example, if I create a listview and link the 'Click' and 'ItemFocus' events to it (in no particular order), it appears (from my own testing) that the 'ItemFocus' event is always trigger...
by stretch65
27 Oct 2022, 09:19
Forum: Ask for Help (v2)
Topic: Calling "__Delete()"
Replies: 3
Views: 518

Re: Calling "__Delete()"

Thanks. I hate to trouble you, but do you have a simple example of an 'event sink'?
by stretch65
27 Oct 2022, 03:07
Forum: Ask for Help (v2)
Topic: Calling "__Delete()"
Replies: 3
Views: 518

Calling "__Delete()"

I don't quite understand when "__Delete()" is called for any object. As an example I wrote the following: class Test { __New(cols) { MsgBox "__New()" this.g := Gui("toolWindow") this.g.SetFont("s12", "Verdana") this.g.OnEvent("Close", this.close.Bind(this)) this.lv := this.g.Add("ListView", "-hdr r8...
by stretch65
12 Oct 2022, 00:29
Forum: Ask for Help (v2)
Topic: Parameters required for 'DefineProp'
Replies: 1
Views: 438

Parameters required for 'DefineProp'

Hi, I need some clarification regarding the syntax of 'DefineProp'. The docs say it takes 2 parameters, i.e. name of a property & an object, except I've seen some users coding for example: ObjDefineProp := Object.Prototype.DefineProp for f in String2.OwnProps() { if !(f ~= "__Init|__Item|Prototype|B...
by stretch65
23 Sep 2022, 00:15
Forum: Scripts and Functions (v2)
Topic: String.ahk, Array.ahk, Misc.ahk
Replies: 34
Views: 5803

Re: String.ahk

Seems like a great example for me to learn from. Thanks very much for this!
by stretch65
15 Feb 2022, 00:19
Forum: Scripts and Functions (v2)
Topic: Radial Menu V2 - beta.3
Replies: 14
Views: 4040

Re: Radial Menu V2 - beta.3

I'm getting the following error when I click the middle mouse button:

Error: This value of type "Map" has no property named "0" (on line 201)
by stretch65
10 Jun 2021, 05:49
Forum: Ask for Help (v2)
Topic: A Single Script for 2 Trackballs?
Replies: 0
Views: 528

A Single Script for 2 Trackballs?

I have 2 computers that I use at different times of the day. On computer 1, I use a 4 button trackball in which buttons 3 & 4 are defined natively as "xbutton1" and "xbutton2". On computer 2, I use a different 4 button trackball in which buttons 3 & 4 are defined natively as "mbutton" and "xbutton1"...
by stretch65
21 Dec 2020, 04:31
Forum: Ask for Help (v2)
Topic: GroupBox Controls?
Replies: 1
Views: 640

GroupBox Controls?

How does one add gui controls to a GroupBox control?
by stretch65
12 Dec 2020, 00:22
Forum: Ask for Help (v2)
Topic: Extending the File Object?
Replies: 2
Views: 416

Re: Extending the File Object?

Thanks very much for this.
by stretch65
11 Dec 2020, 07:10
Forum: Ask for Help (v2)
Topic: Extending the File Object?
Replies: 2
Views: 416

Extending the File Object?

I don't have much experience with OOP in AHKv2, but I was wondering if it's possible to add an extra function to the File object in a script. The function I had in mind would do the same thing as File.WriteLine( "some text" ), but would also send "some text" to my debugger (using "OutputDebug"). Is ...
by stretch65
08 Dec 2020, 05:41
Forum: Ask for Help (v2)
Topic: Working directory for Loop Files?
Replies: 1
Views: 699

Working directory for Loop Files?

Hi, The "Loop Files" command for file traversal uses the current working directory contained in "A_WorkingDir". If I change the working directory (using "SetWorkingDir") inside the "Loop Files" loop, does the command still remember and use the original working directory for each iteration?? I would ...
by stretch65
15 Oct 2020, 23:25
Forum: AutoHotkey Development
Topic: Key names without the modifiers?
Replies: 2
Views: 1487

Key names without the modifiers?

I understand that there's an implicit parameter 'ThisHotKey' that exists on entry to every hotkey routine. Quite often I'm wanting just the key name(s) from this parameter without the modifiers. So, for example, if ThisHotKey = "$!+LButton" then I often want just "LButton" to use in a command like "...
by stretch65
12 Oct 2020, 03:53
Forum: Ask for Help (v2)
Topic: Prevent triggering and buffering
Replies: 1
Views: 464

Prevent triggering and buffering

Say I have 2 hot keys defined. For example: $m:: { keywait "m" } $a:: { keywait "a" } If I hold down "m" then $m:: is obviously triggered. If, while I'm holding "m" down, I press "a" then $a:: interrupts $m:: . When "a" is released, $m:: resumes until it's released as well. Now what I want is for th...
by stretch65
08 Nov 2019, 03:30
Forum: Ask for Help (v2)
Topic: Problem with Class
Replies: 4
Views: 1402

Re: Problem with Class

OK! Thank you so much. I've changed the code to the following (with no error messages): MyClass.buildMenu() msgbox "Script Loaded" ; -------------------------------------------------- class MyClass { static myMenu := menuCreate() static buildMenu() { MyClass.myMenu.add("Menu Text", MyClass.getMethod...

Go to advanced search