Search found 7 matches
- 08 Sep 2023, 11:46
- Forum: AutoHotkey Development
- Topic: [Wish:] Wish introduce $ syntax to define a Constant
- Replies: 7
- Views: 1737
Re: [Wish:] Wish introduce &$ syntax to support creating an anonymous variable
Hey, are you perhaps confusing “anonymous” with “immutable”? Anonymous means it has no name, but when doing &$b etc. you are clearly still using a name, so idk what is supposed to be anonymous about that. In case I'm right and you're talking about immutability, this feature wouldn't make a lot of se...
- 01 Aug 2023, 14:13
- Forum: Suggestions on Documentation Improvements
- Topic: Could the usage x1:=x1??x2??x3??x4??x5 be formally documented?
- Replies: 3
- Views: 1153
Re: Could the usage x1:=x1??x2??x3??x4??x5 be formally documented?
I'm not sure what you think should be documented about this, that's just how operators work, isn't it? All operators (with very few exceptions, which are documented) are evaluated from left to right. So just like 1 + 2 + 3 evaluates 1 + 2 first, and then + 3 to the result of that, a ?? b ?? c evalua...
- 08 Apr 2023, 12:03
- Forum: KeySharp
- Topic: Keysharp - the resurrection of IronAHK
- Replies: 216
- Views: 97893
- 06 Apr 2023, 10:41
- Forum: Bug Reports
- Topic: [v2] Unset breaks property setters
- Replies: 1
- Views: 883
[v2] Unset breaks property setters
class Test { prop { set => msgbox() } } Test().prop := unset This code throws Error: Missing a required parameter on the assignment. This is because setters are translated to functions with one required parameter. Manually defining a setter with an optional parameter fixes this behavior: x := {} x....
- 03 Jan 2023, 16:54
- Forum: Scripts and Functions (v2)
- Topic: Confine Mouse Cursor to arbitrary polygon
- Replies: 0
- Views: 394
Confine Mouse Cursor to arbitrary polygon
Hi there, someone in the AutoHotkey Discord server asked for this, and I took it as a challenge. This function will confine your mouse cursor to an arbitrary polygon on the screen. It's not without its issues, so please feel free to improve it, both by fixing bugs, and by improving performance. I'm ...
- 03 Jul 2022, 07:59
- Forum: KeySharp
- Topic: Keysharp - the resurrection of IronAHK
- Replies: 216
- Views: 97893
Re: Keysharp - the resurrection of IronAHK
There is a channel called #keysharp on the AutoHotkey Discord server. You can't view it by default, but you can give yourself access to it through the #roles channel.silvascientist wrote: ↑03 Jul 2022, 01:21Wait, where can we find the Keysharp Discord though? I've been looking and can't seem to track it down
- 13 Oct 2021, 14:47
- Forum: Scripts and Functions (v2)
- Topic: SafeCall — Call any function with any amount of arguments
- Replies: 3
- Views: 1731
SafeCall — Call any function with any amount of arguments
SafeCall allows you to safely call any function, regardless of the number of arguments you are passing or the parameters it expects. This is most useful with callbacks, to which you might want to provide data via arguments. To do this, either the callback is forced to define corresponding parameters...