I've been writing ahk2 scripts for >5 years now. It is stable.
Search found 32 matches
- 24 Aug 2022, 12:49
- Forum: AutoHotkey Development
- Topic: Will v2 ever hit the stable state?
- Replies: 61
- Views: 14970
- 16 Aug 2022, 07:27
- Forum: Bug Reports
- Topic: [v2] RegExReplace callout with global variable Topic is solved
- Replies: 6
- Views: 1440
Re: [v2] RegExReplace callout with global variable Topic is solved
Another example: q := " " path := "Ver %A_AhkVersion%, ID %A_ScriptHwnd%" MsgBox RegExReplace(path, "%(A_\w*?)%(?Creplace)", q) replace(m, *) { global q q := %m.1% q := StrLen(q) } Will show: Ver 2.0-beta.7, ID 5578266 But q := " " path := "Ver %A_AhkVersion%, ID %A_ScriptHwnd%" MsgBox RegExReplace(...
- 06 Aug 2022, 05:42
- Forum: Scripts and Functions (v1)
- Topic: VD.ahk : Virtual Desktop (move window, go to VD of your choice instantly, get Which VD you are in, etc.)
- Replies: 10
- Views: 5425
Re: VD.ahk : Virtual Desktop (move window, go to VD of your choice instantly, get Which VD you are in, etc.)
How about version for AHK v2?
- 12 Feb 2022, 13:14
- Forum: Bug Reports
- Topic: [v2] RegExReplace callout with global variable Topic is solved
- Replies: 6
- Views: 1440
- 12 Feb 2022, 01:37
- Forum: Bug Reports
- Topic: [v2] RegExReplace callout with global variable Topic is solved
- Replies: 6
- Views: 1440
[v2] RegExReplace callout with global variable Topic is solved
replace(m, *) { global q q := %m.1% } q := "bug" w := RegExReplace("#include %A_MyDocuments%\test", "%(A_\w+)%(?Creplace)", q) ;w -> #include bug\test q := " " w := RegExReplace("#include %A_MyDocuments%\test", "%(A_\w+)%(?Creplace)", q) ;w -> #include C:\Users\user\Documents\test Why?
- 30 Aug 2021, 16:11
- Forum: Scripts and Functions (v1)
- Topic: 2021.10.03 BeautifulToolTip - A highly compatible, high-performance, easy to use, multi-style, customizable ToolTip
- Replies: 42
- Views: 15078
- 29 Aug 2021, 14:50
- Forum: Ask for Help (v2)
- Topic: The second separate script interferes with the first
- Replies: 1
- Views: 502
Re: The second separate script interferes with the first
Zoom-wheel, when only the first script is running:
Zoom wheel, when both scripts are running:
- 29 Aug 2021, 14:39
- Forum: Ask for Help (v2)
- Topic: The second separate script interferes with the first
- Replies: 1
- Views: 502
The second separate script interferes with the first
I have a basic script for my applications. Here's the part of it (containing the wheel-zoom function for the figma): #Insert:: MsgBox("Hello") ;other k-hook hotkeys have been skipped #HotIf WinActive("ahk_exe Figma.exe") or WinActive("ahk_exe Figma Beta.exe") WheelUp:: Send("^{WheelUp}") WheelDown::...
- 29 Aug 2021, 13:10
- Forum: Ask for Help (v2)
- Topic: [v2.0-beta.1] %"obj"%.%"method"%
- Replies: 15
- Views: 1249
- 28 Aug 2021, 20:45
- Forum: Ask for Help (v2)
- Topic: [v2.0-beta.1] %"obj"%.%"method"%
- Replies: 15
- Views: 1249
Re: [v2.0-beta.1] %"obj"%.%"method"%
It seems that I haven't learned enough about the mechanics of how objects work. I'll go read the documentation. Thanks for the help, guys.
- 28 Aug 2021, 15:01
- Forum: Ask for Help (v2)
- Topic: [v2.0-beta.1] %"obj"%.%"method"%
- Replies: 15
- Views: 1249
Re: [v2.0-beta.1] %"obj"%.%"method"%
I have a text file containing 'obj.method<tab>param1, param2, ... paramN'. I loaded it into the variables. Then I need to call this method with its parameters. I don't know what the object was created from and what parameters the method has. I just read the information from the text file and it's al...
- 28 Aug 2021, 12:38
- Forum: Ask for Help (v2)
- Topic: [v2.0-beta.1] %"obj"%.%"method"%
- Replies: 15
- Views: 1249
Re: [v2.0-beta.1] %"obj"%.%"method"%
What if methods in both cases can have any number of minimum params?
- 28 Aug 2021, 12:08
- Forum: Ask for Help (v2)
- Topic: [v2.0-beta.1] %"obj"%.%"method"%
- Replies: 15
- Views: 1249
Re: [v2.0-beta.1] %"obj"%.%"method"%
obj2 := cls() obj1 := {method: method2} str2obj("obj1.method")() str2obj("obj2.method")() method2() { msgbox "blah" } class cls { method() { msgbox "blah" } } str2obj(obj) { m := "", res := "", pos := 1 while pos := RegExMatch(obj, "(\w+)\.?", &m, pos) { if pos = 1 res := %m.1% else res := res.%m.1...
- 28 Aug 2021, 11:39
- Forum: Ask for Help (v2)
- Topic: [v2.0-beta.1] %"obj"%.%"method"%
- Replies: 15
- Views: 1249
Re: [v2.0-beta.1] %"obj"%.%"method"%
How to distinguish the class object when calling the method of which the first argument needs to send a link to its object, from an object created from {}, which is not required of this link?
- 28 Aug 2021, 10:33
- Forum: Ask for Help (v2)
- Topic: [v2.0-beta.1] %"obj"%.%"method"%
- Replies: 15
- Views: 1249
Re: [v2.0-beta.1] %"obj"%.%"method"%
What if the object was created like this?
Code: Select all
obj := {}
obj.method := method
method() {
msgbox "blah"
}
- 28 Aug 2021, 08:31
- Forum: Ask for Help (v2)
- Topic: [v2.0-beta.1] %"obj"%.%"method"%
- Replies: 15
- Views: 1249
Re: [v2.0-beta.1] %"obj"%.%"method"%
The main challenge is to call an object method with only a string variable with the name of the object and method. I have "obj.method", and I need to call the obj.method().
- 28 Aug 2021, 06:03
- Forum: Ask for Help (v2)
- Topic: [v2.0-beta.1] %"obj"%.%"method"%
- Replies: 15
- Views: 1249
[v2.0-beta.1] %"obj"%.%"method"%
I need to call an object method from a string literal. But I'm getting an error: class cls { method() { msgbox "blah" } } obj := cls() %"obj"%.%"method"%() ;good ref := %"obj"%.%"method"% ref() ;error: missing parameter 'this' How to solve this? [Mod edit: Topic moved from 'Bug Reports'.]
- 10 Aug 2021, 08:37
- Forum: Scripts and Functions (v1)
- Topic: [LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit
- Replies: 95
- Views: 74854
Re: [LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit
I ported it to the ahk v2: ; ported to AHK v2.0-beta by @krasnovpro ; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=1229 ; ---------------------------------------------------------------------------------------------------------------------- ; Name ..........: TrayIcon library ; Description ...
- 10 Aug 2021, 08:08
- Forum: Scripts and Functions (v1)
- Topic: [LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit
- Replies: 95
- Views: 74854
Re: [LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit
Please, fix the %sTrayPlace% in the TrayIcon_Move and TrayIcon_Delete.
- 04 Aug 2021, 12:02
- Forum: AutoHotkey Development
- Topic: OnHotkey callback
- Replies: 1
- Views: 2421
OnHotkey callback
https://github.com/Lexikos/AutoHotkey_L/pull/239
Will this feature ever appear in v2?
Will this feature ever appear in v2?