Search found 8 matches

by stretch65
21 Dec 2020, 04:31
Forum: AutoHotkey v2 Help
Topic: GroupBox Controls?
Replies: 1
Views: 79

GroupBox Controls?

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

Re: Extending the File Object?

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

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: AutoHotkey v2 Help
Topic: Working directory for Loop Files?
Replies: 1
Views: 466

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 v2 Development
Topic: Key names without the modifiers?
Replies: 2
Views: 527

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: AutoHotkey v2 Help
Topic: Prevent triggering and buffering
Replies: 1
Views: 195

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: AutoHotkey v2 Help
Topic: Problem with Class
Replies: 4
Views: 983

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...
by stretch65
08 Nov 2019, 00:19
Forum: AutoHotkey v2 Help
Topic: Problem with Class
Replies: 4
Views: 983

Problem with Class

Hi, I can't figure out how to get this code working. In the example below, I'm trying to add an item to a menu, and that item should call the static method 'doStuff'. But no matter what I try it's not working. Can someone help? MyClass.buildMenu() msgbox "Script Loaded" ; ---------------------------...

Go to advanced search