majkinetor wrote:
It will finish just on time when coffie is hot
Is true that AutoIt is very slow when compared to AutoHotkey. I maked a comparative.
Two scripts, that does exactly the same, in the two scripting languages:
AutoHotkey version:
Code:
factor := 1000 ; put some number here
d := A_TickCount
i := 0
Loop
{
i ++
If i > %factor%
Break
Random, dummy, 1, 1000
}
stop := A_TickCount - d
Clipboard := stop
MsgBox %stop%
AutoIt version:
Code:
$factor = 1000 ; put some number here
$timer = TimerInit()
For $i = 1 to $factor
Random(1, 1000, 1)
Next
$stop = TimerDiff($timer)
ClipPut($stop)
MsgBox(0, "", $stop)
At least in one of my computers these are the results:
factor/$factor value: 1000
AutoHotkey: 0 ms
AutoIt: 71 ms
factor/$factor value: 100000
AutoHotkey: 375 ms
AutoIt: 729 ms
factor/$factor value: 10000000
AutoHotkey: 40 sec.
AutoIt: 1 min. 13 sec.

I was very tired to wait...
Total:
Time that AutoHotkey is doing tasks: 41 sec.
Time that AutoIt is doing tasks: 1 min. 14 sec.
Conclusion: AutoHotkey is faster
_________________
fincs
Highly recommended: AutoHotkey_L (
see why) (all my code snippets require it)
Formal request to polyethene - I support the unity of the AutoHotkey community
Get SciTE4AutoHotkey v3.0.00 (Release Candidate)[My project list]