Search found 32 matches

by quaritexa
24 Aug 2022, 12:49
Forum: AutoHotkey Development
Topic: Will v2 ever hit the stable state?
Replies: 61
Views: 14970

Re: Will v2 ever hit the stable state?

swq wrote:
08 Jul 2022, 14:30
My second question is if AHK v2 eventually become stable will it be the default AHK version right away? Will it be the end of support for AHK v1?
I've been writing ahk2 scripts for >5 years now. It is stable.
by quaritexa
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(...
by quaritexa
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?
by quaritexa
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:
210829224222.gif
210829224222.gif (1.31 MiB) Viewed 499 times
Zoom wheel, when both scripts are running:
210829224255.gif
210829224255.gif (1.94 MiB) Viewed 499 times
by quaritexa
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::...
by quaritexa
29 Aug 2021, 13:10
Forum: Ask for Help (v2)
Topic: [v2.0-beta.1] %"obj"%.%"method"%
Replies: 15
Views: 1249

Re: [v2.0-beta.1] %"obj"%.%"method"%

lexikos wrote:
28 Aug 2021, 21:32
The solution is not to work around the error in the code, but to fix it.
You are absolutely right, Master.
by quaritexa
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.
by quaritexa
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...
by quaritexa
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?
by quaritexa
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...
by quaritexa
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?
by quaritexa
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"
}
by quaritexa
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().
by quaritexa
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'.]
by quaritexa
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 ...
by quaritexa
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.
by quaritexa
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?

Go to advanced search