Search found 587 matches

by arcticir
26 Jan 2020, 05:15
Forum: AutoHotkey v2 Help
Topic: How does V2 implement this V1 code?
Replies: 17
Views: 602

Re: How does V2 implement this V1 code?

Thank you This brings me to a new understanding of built-in functions, which are not necessarily faster than custom functions.
by arcticir
25 Jan 2020, 21:16
Forum: AutoHotkey v2 Help
Topic: How does V2 implement this V1 code?
Replies: 17
Views: 602

Re: How does V2 implement this V1 code?

Helgef HotKeyIt Thank you. lvalkov Regarding performance, my test results are the opposite of yours. loop 1000000 V2 V100 0.550465S V2 V108 0.903593S I can't imagine why you think this function will be faster than the built-in functions. minmax(i) { this.max:=max(i,this.max), this.min:=min(i,this.m...
by arcticir
25 Jan 2020, 15:05
Forum: AutoHotkey v2 Help
Topic: How does V2 implement this V1 code?
Replies: 17
Views: 602

Re: How does V2 implement this V1 code?

@Helgef

Yes, but compared to V1, its performance and simplicity are desperate.
So I have been thinking, what did V2 gain in exchange for the lost flexibility and simplicity? :(
by arcticir
25 Jan 2020, 14:37
Forum: AutoHotkey v2 Help
Topic: How does V2 implement this V1 code?
Replies: 17
Views: 602

Re: How does V2 implement this V1 code?

@Helgef
The situation may be more complicated. "F" will be passed multiple times as a parameter, it cannot carry the two variables "min"-"max".

So my current method is:

Code: Select all

max(f){
for i in f
max:=i
return max
}
min(f){
for i in f
return i
}
by arcticir
25 Jan 2020, 13:42
Forum: AutoHotkey v2 Help
Topic: How does V2 implement this V1 code?
Replies: 17
Views: 602

Re: How does V2 implement this V1 code?

@Helgef The point is "min-max" ...
by arcticir
25 Jan 2020, 13:08
Forum: AutoHotkey v2 Help
Topic: How does V2 implement this V1 code?
Replies: 17
Views: 602

Re: How does V2 implement this V1 code?

Helgef wrote:
25 Jan 2020, 13:05
Set the length of the array, use has() and save max and min index yourself. If the length required is too large, use a map.
Yes, it can be done this way. But its performance and simplicity is a disaster.
by arcticir
25 Jan 2020, 12:37
Forum: AutoHotkey v2 Help
Topic: How does V2 implement this V1 code?
Replies: 17
Views: 602

How does V2 implement this V1 code?

It may seem simple, but I didn't expect that the latest V2 would be so difficult to implement it.

Code: Select all

f:=[]
loop 1000
{
t:=random(1,100)
if f[t]
f[t]++
else if t>f.maxindex() or  t<f.minindex()
f[t]:=1
}
by arcticir
19 Dec 2019, 12:12
Forum: AutoHotkey v2 Development
Topic: How to close map case-sensitive?
Replies: 5
Views: 377

Re: How to close map case-sensitive?

nnnik wrote:
19 Dec 2019, 07:46
How about using the correct case sensitivity for your x from the start?
X is unknown, including sources.

swagfag wrote:
19 Dec 2019, 07:55
Thank you very much for your example.
It seems I need to adapt to this change.
by arcticir
19 Dec 2019, 06:30
Forum: AutoHotkey v2 Development
Topic: How to close map case-sensitive?
Replies: 5
Views: 377

How to close map case-sensitive?

I try to modify my script to use the latest version of V2. But I painfully found that although the new object () has many desirable features, it also lost its original simplicity. I can no longer use object as freely as before. When I use "map()", it is always wrong: mymap.t()/%mymap.t%()/mymap.%t%(...
by arcticir
11 Oct 2019, 05:38
Forum: AutoHotkey_H
Topic: H2 is no longer synchronizing L2 updates?
Replies: 4
Views: 1426

Re: H2 is no longer synchronizing L2 updates?

thanks for the reply.
by arcticir
10 Oct 2019, 05:55
Forum: AutoHotkey_H
Topic: H2 is no longer synchronizing L2 updates?
Replies: 4
Views: 1426

H2 is no longer synchronizing L2 updates?

H2 is no longer synchronizing L2 updates?

I noticed that H2 has not merged L2 updates for a long time.
by arcticir
12 Sep 2019, 20:50
Forum: Forum Issues
Topic: Where is the Chinese Forum ?
Replies: 69
Views: 14635

Re: Where is the Chinese Forum ?

Now, "autoahk.com" claims to be the official Chinese website.
Does anyone agree that "autoahk.com" is the official Chinese website?
by arcticir
12 Sep 2019, 20:45
Forum: Forum Issues
Topic: Where is the Chinese Forum ?
Replies: 69
Views: 14635

Re: Where is the Chinese Forum ?

I am willing to take responsibility in this position.
by arcticir
24 Aug 2019, 21:15
Forum: Ask For Help
Topic: How do I get the down time of the combined hotkey?
Replies: 6
Views: 737

Re: How do I get the down time of the combined hotkey?

Thank you. But what I need is "ARLT" as the trigger and UP time.
by arcticir
24 Aug 2019, 08:05
Forum: Ask For Help
Topic: How do I get the down time of the combined hotkey?
Replies: 6
Views: 737

Re: How do I get the down time of the combined hotkey?

Rohwedder wrote:
24 Aug 2019, 03:00
I need "RAlt::" to trigger the time.
by arcticir
23 Aug 2019, 23:22
Forum: Ask For Help
Topic: How do I get the down time of the combined hotkey?
Replies: 6
Views: 737

Re: How do I get the down time of the combined hotkey?

In this case If you press a key to know the time since THAT hotkey A_TimeSinceThisHotkey it will be always 0 / null, because you just pressed it and since there is no return after the SendInput both keys are considered "This HotKey". If I'm not wrong the solution is KeyWait or maybe A_TimeSincePrio...
by arcticir
23 Aug 2019, 07:15
Forum: Ask For Help
Topic: How do I get the down time of the combined hotkey?
Replies: 6
Views: 737

How do I get the down time of the combined hotkey?

In this code, I can't get the right time.
A_TimeSinceThisHotkey is a null value.

Code: Select all

>!a::	SendInput "^+a"

RAlt::
time:=A_TimeSinceThisHotkey
if time>500
MsgBox 1
else MsgBox 2
return
by arcticir
09 Aug 2019, 05:21
Forum: Scripts and Functions
Topic: [Script] Quick Picto Viewer and Fast Slideshow creator
Replies: 78
Views: 10088

Re: [Script] Quick Picto Viewer and Fast Slideshow creator

I called it in CMD to convert GIF, which is several times faster than "ImageMagick" and "ffmpeg". Praise it. I found a lot of DLL libraries in its directory, including "CORE_RL_webp_.dll", I loaded it normally. But for the time being I don't know how to call it . http://img02.sogoucdn.com/app/a/1005...
by arcticir
09 Aug 2019, 00:23
Forum: Scripts and Functions
Topic: [Script] Quick Picto Viewer and Fast Slideshow creator
Replies: 78
Views: 10088

Re: [Script] Quick Picto Viewer and Fast Slideshow creator

Hi. Thank you for your work. I used the code below to try to load WEBP and it looks good. hFIFimg := FreeImage_Load(SrcImgPath) GdipCreateBitmapFromGdiDib(FreeImage_GetInfoHeader(hFIFimg),FreeImage_GetBits(hFIFimg),getvar(pBitmap:=0)) ; ahk_h v2 I compared the performance of GDIP and FreeImage. Unfo...

Go to advanced search