Search found 219 matches

by V2User
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...
by V2User
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...
by V2User
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:

Code: Select all

loop{
	c:=[1,2,3].Clone()
}
image.png
image.png (144.09 KiB) Viewed 1325 times
The memory will instantly increase from 2MB to 50MB in several minutes. Normally, it should always be 2.0 MB like any other.
by V2User
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.
by V2User
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.
by V2User
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.
image.png
image.png (36.29 KiB) Viewed 596 times
by V2User
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

image.png
image.png (14.9 KiB) Viewed 470 times
What is about this feature with 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:

Code: Select all

static f(){
	
}
by V2User
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

image.png
image.png (43.17 KiB) Viewed 2231 times

Code: Select all

class buffer2 extends buffer {
	p1=>NumGet(this,'int64')+this.p2
}
c:={p2:25,base:Buffer2(8)}.p1
Wish buffer object could be used completely as normal object, if it doesn't affect the performance.
by V2User
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.
by V2User
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.
by V2User
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

Re: [V2:] & and => should not be an operator but a keyword instead

lexikos wrote:
28 Sep 2023, 23:39
=> could be said to override precedence in the same way as :=; i.e. it has higher precedence than anything to its left.
Thanks for the answer. It explains well how right-associative operators work, currently.
by V2User
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.
by V2User
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...
by V2User
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...
by V2User
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() ...
by V2User
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)...
by V2User
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...

Go to advanced search