Search found 219 matches
- 10 Dec 2023, 02:41
- Forum: AutoHotkey Development
- Topic: Is the "`n" option in FileAppend and FileRead confusing?
- Replies: 29
- Views: 8062
Re: Is the "`n" option in FileAppend and FileRead confusing?
I suddenly agree with lexikos now, since I have realized that there are only linefeeds of two sides. One side is the OS side , which is always the default linefeed such as 'r'n in windows. While the other side is AHK side, which is probably 'n . Just like Python , it automatically converts linefeeds...
- 10 Dec 2023, 00:27
- Forum: Ask for Help (v2)
- Topic: What feature is it? Topic is solved
- Replies: 2
- Views: 485
Re: What feature is it? Topic is solved
The warning about the feature is due to "cascade failure"; i.e. because static was not recognized as a modifier for the function named get , the subsequent warning is assuming that the remainder of the line is an expression containing a function definition expression . That is the feature it is ref...
- 08 Dec 2023, 02:55
- Forum: Bug Reports
- Topic: [2.0.10:] Memory leaks when clone Array or Map obj Topic is solved
- Replies: 5
- Views: 1325
Re: [2.0.10:] Memory leaks when clone Array obj Topic is solved
The same happens to Map objects.
- 26 Nov 2023, 23:13
- Forum: Bug Reports
- Topic: [2.0.10:] Memory leaks when clone Array or Map obj Topic is solved
- Replies: 5
- Views: 1325
Re: [2.0.10:] Memory leaks when clone Array obj Topic is solved
Thanks for your great work. you all.
- 26 Nov 2023, 12:00
- Forum: Bug Reports
- Topic: [2.0.10:] Memory leaks when clone Array or Map obj Topic is solved
- Replies: 5
- Views: 1325
[2.0.10:] Memory leaks when clone Array or Map obj Topic is solved
Memory leaks when clone Array obj.
This code below will lead to serious memory leaks:
The memory will instantly increase from 2MB to 50MB in several minutes. Normally, it should always be 2.0 MB like any other.
This code below will lead to serious memory leaks:
Code: Select all
loop{
c:=[1,2,3].Clone()
}
- 23 Nov 2023, 21:55
- Forum: Wish List
- Topic: Wish ZeroDivisionError should be a subclass of ValueError
- Replies: 0
- Views: 590
Wish ZeroDivisionError should be a subclass of ValueError
Wish ZeroDivisionError should be a subclass of ValueError, like other languages.
- 23 Nov 2023, 04:09
- Forum: AutoHotkey Development
- Topic: Is the "`n" option in FileAppend and FileRead confusing?
- Replies: 29
- Views: 8062
Re: Is the "`n" option in FileAppend and FileRead confusing?
I think use ClRf to replace 'n to represent 'r`n might be better. And use LineFeedByOS to follow the system's own setting.
- 23 Nov 2023, 03:47
- Forum: Scripts and Functions (v2)
- Topic: Struct
- Replies: 0
- Views: 596
Struct
This is a class for quickly creating structs for Dllcall(). It can read or write a struct by struct member names.
- 22 Nov 2023, 21:01
- Forum: Ask for Help (v2)
- Topic: What feature is it? Topic is solved
- Replies: 2
- Views: 485
What feature is it? Topic is solved
static usage in alpha.3. I cannot find information about it in the announcement board of our forum nor in the latest documention of alpha version. Could someone explain more?
code:
What is about this feature with code:
Code: Select all
static f(){
}
- 20 Nov 2023, 22:19
- Forum: AutoHotkey Development
- Topic: Wish buffer object could be used like object
- Replies: 2
- Views: 2231
Wish buffer object could be used like object
Code: Select all
class buffer2 extends buffer {
p1=>NumGet(this,'int64')+this.p2
}
c:={p2:25,base:Buffer2(8)}.p1
- 14 Nov 2023, 00:00
- Forum: Scripts and Functions (v2)
- Topic: DeepCopy
- Replies: 0
- Views: 827
DeepCopy
This is a Class for deepCopy I implemented recently. It can deep copy any AHK object without using recursion. It can also deepCopy map with keys deepcopied and arrays, nested in anyplace of the object.
Enjoy it.
Enjoy it.
- 03 Nov 2023, 22:49
- Forum: AutoHotkey Development
- Topic: [Wish:] Again, wish the usage of "function definition expressions" to be eliminated
- Replies: 26
- Views: 8793
Re: [Wish:] Again, wish the usage of "function definition expressions" to be eliminated
Last reminder, unlocking limit should always be careful. It is not something of that you think it may be better and then do it. Once unlocked, it can never come back.
- 27 Oct 2023, 00:43
- Forum: Suggestions on Documentation Improvements
- Topic: [V2:] & and => should not be an operator but a keyword instead
- Replies: 4
- Views: 1834
- 27 Oct 2023, 00:33
- Forum: Wish List
- Topic: [V2.0.10:] Wish minParam of a bind func could show the fact
- Replies: 1
- Views: 998
Re: [V2.0.10:] Wish minParam of a bind func could show the fact
If don't apply this wish, callbackCreate(Func.bind(ths)) will work wrongly on paraCount.
- 27 Oct 2023, 00:16
- Forum: Ask for Help (v2)
- Topic: Something wrong with built-in Run() and happened on &pid Topic is solved
- Replies: 4
- Views: 1236
Re: Something wrong with built-in Run() and happened on &pid Topic is solved
There's option to run Notepad in tabs as well. Also see: https://www.autohotkey.com/boards/viewtopic.php?&p=498040 Related: See here . and a little more about the Notepad window handle at SO . Thank you very much for introducing and sharing information and resources about notepad for studying for m...
- 27 Oct 2023, 00:11
- Forum: Ask for Help (v2)
- Topic: Something wrong with built-in Run() and happened on &pid Topic is solved
- Replies: 4
- Views: 1236
Re: Something wrong with built-in Run() and happened on &pid Topic is solved
2. Screenshots of code are annoying, you are forcing us to manually type that code ourselves instead of simply copy-pasteing it. I am sorry about that. Usually, I will use codes while this time it's a screenshot from my friends. I will pay attention next time. Thanks for your answer. It explains th...
- 25 Oct 2023, 00:57
- Forum: Ask for Help (v2)
- Topic: Something wrong with built-in Run() and happened on &pid Topic is solved
- Replies: 4
- Views: 1236
Something wrong with built-in Run() and happened on &pid Topic is solved
[Moderator's note: Topic moved from Bug Reports.] Something wrong in built-in Run() and happened on &pid : ZNP}}W)}H_U0WJYNFZZ)IFE.png If you use built-in Run() , the &pid will change from original right pid to another pid . And then built-in processWait() can not wait the pid which built-in Run() ...
- 23 Oct 2023, 08:42
- Forum: Scripts and Functions (v2)
- Topic: Coroutine support with "yield" usage for AutohotkeyV2 like Python
- Replies: 1
- Views: 997
Re: Coroutine support with "yield" usage for AutohotkeyV2 like Python
I have updated a new version of coroutine which has totally solved the memory leak. And it can be heavily used now. Below example shows how it changes a complex recursion to an iterator: image.png #Include <Coroutine\Coroutine> Class arr{ t:=1 f(n){ if n<=2{ rt:=n }else{ rt:= this.f(n-2)+this.f(n-1)...
- 22 Oct 2023, 20:47
- Forum: Wish List
- Topic: [V2.0.10:] Wish minParam of a bind func could show the fact
- Replies: 1
- Views: 998
[V2.0.10:] Wish minParam of a bind func could show the fact
image.png In the above picture, minParams of the bind function should have return 1, while currently any bind func will return 0. In fact, arguments passed to a func in total can never be more or less, if the code of the func is written for a specific paramCount. However, parameters of bind funcs a...
- 25 Sep 2023, 02:46
- Forum: Ask for Help (v2)
- Topic: [2.0.10] What is "chained array" in recent changes of 2.0.10? Topic is solved
- Replies: 3
- Views: 510
Re: [2.0.10] What is "chained array" in recent changes of 2.0.10? Topic is solved
@boiler @Seven0528 Thank you!