 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Thu Jul 26, 2007 8:31 am Post subject: |
|
|
| Laszlo wrote: | | I don't understand: why you guys respond to trolls? |
1) Because we like to argue!
2) I know the adage "Don't feed the trolls", but people might hesitate between the two tools, and search, and find the above propaganda. So I feel it should be balanced a bit.
BoBoĻ, about the "Please tell us three things you don't like about AutoHotKey*. At least one field required."
I frowned on this too, but frankly, there are lot of things I don't like about AutoHotkey (two capitals only...) But I can tell the same about every programming language I know, and even every software I use.
The bias is indeed on the required field, while none is required in the things we like about it...  _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Thu Jul 26, 2007 9:20 am Post subject: |
|
|
| Quote: | | The bias is indeed on the required field, while none is required in the things we like about it... |  |
|
| Back to top |
|
 |
i542 Guest
|
Posted: Thu Jul 26, 2007 10:04 am Post subject: |
|
|
_ok, i will not argue with you anymore (it is just useless waste of time because I know AutoIt is better ) so bye and see you (read: f**k you )_ |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Thu Jul 26, 2007 10:32 am Post subject: |
|
|
 |
|
| Back to top |
|
 |
Grumpy Guest
|
Posted: Thu Jul 26, 2007 12:57 pm Post subject: |
|
|
| i542 wrote: | | it is just useless waste of time | Aaah, so we can say that sometime, i542 is right!
BTW, I rarely see useful waste of time...  |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Thu Jul 26, 2007 1:23 pm Post subject: |
|
|
| Quote: | | BTW, I rarely see useful waste of time... | Isn't that how those geeks naming AU3's performance ?  |
|
| Back to top |
|
 |
i542 Guest
|
Posted: Sun Jul 29, 2007 12:12 pm Post subject: |
|
|
| BoBoĻ wrote: | | Quote: | | BTW, I rarely see useful waste of time... | Isn't that how those geeks naming AU3's performance ?  | Noooooo....  |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2436
|
Posted: Tue Jul 31, 2007 3:15 am Post subject: |
|
|
| Grumpy wrote: | BTW, I rarely see useful waste of time...  | Is this your first time at this forum...  |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Aug 07, 2007 5:48 am Post subject: |
|
|
| there are so many programming and scripting languages that some of them utterly fall cause of WEAKNESS, come on dont try to hide behind your finger. AutoIt v3 IS BETTER and you know that , you are just not willing to believe it and get a life |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3652 Location: Belgrade
|
Posted: Tue Aug 07, 2007 12:52 pm Post subject: |
|
|
Ah, I see I missed interesting conversation with lot of nice ppl.
To bad, your kind is always fun, like watching the monkey.
Guest, i542, MissDirty and your group of "We hate AHK" please continue. Post some more drawings please, those were particulary fun (you definitely choosed wrong proffesion).
We need some fun here after lot of work
When you finish, execute AutoIt "Hello World" script before making your self a coffie.
It will finish just on time when coffie is hot, so you can drink it up and enjoy nice message.  _________________
 |
|
| Back to top |
|
 |
fincs
Joined: 05 May 2007 Posts: 82 Location: Seville, Spain
|
Posted: Tue Aug 07, 2007 2:24 pm Post subject: |
|
|
| 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 _________________ Sorry my poor English
Fincs
MsgBox % RegExReplace("Fernando Incs.", "^(\w).*\s+I(\w{3})\w*\.$", "$1i$2") |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4078 Location: Pittsburgh
|
Posted: Tue Aug 07, 2007 3:31 pm Post subject: |
|
|
@fincs: you are measuring the speed of the built-in random number generators. This is interesting, but hardly representative to the overall speed ratios. There could be other tasks, showing different results. Another example: with a 50 line script based on the pure AHK MP library (no external dll or other files) dividing a random number of one million bits by another random number of half size and returning the ratio and the remainder takes about 2 seconds. Finding 100 digits of pi or sqrt(2) takes just milliseconds. Even though the results are impressive, they are still not representative to typical scripts.
Btw, your script could be written in more compact form, like: | Code: | factor := 100000 ; put some number here
d := A_TickCount
Loop %factor%
Random dummy, 1, 1000
stop := A_TickCount - d
Clipboard := stop
MsgBox %stop% | In my 2 GHz Centrino laptop the script takes 40ms. |
|
| Back to top |
|
 |
fincs
Joined: 05 May 2007 Posts: 82 Location: Seville, Spain
|
Posted: Tue Aug 07, 2007 6:44 pm Post subject: |
|
|
| Laszlo wrote: | Btw, your script could be written in more compact form, like: | Code: | factor := 100000 ; put some number here
d := A_TickCount
Loop %factor%
Random dummy, 1, 1000
stop := A_TickCount - d
Clipboard := stop
MsgBox %stop% |
|
I writed the script implementing a FOR loop, for that I don't have used the parameter of the Loop command. But nice suggestion! _________________ Sorry my poor English
Fincs
MsgBox % RegExReplace("Fernando Incs.", "^(\w).*\s+I(\w{3})\w*\.$", "$1i$2") |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3652 Location: Belgrade
|
Posted: Wed Aug 08, 2007 7:28 am Post subject: |
|
|
Just check out million DllCalls to some system function in both languages and you will feel the difference. _________________
 |
|
| Back to top |
|
 |
fincs
Joined: 05 May 2007 Posts: 82 Location: Seville, Spain
|
Posted: Wed Aug 08, 2007 9:46 am Post subject: |
|
|
OK, here is the "Million DllCalls" test:
AutoHotkey version:
| Code: | d := A_TickCount
Counter := 0
Loop, 1000000
{
If(Mod(A_Index, 100) = 0)
ToolTip %A_Index%
DllCall("QueryPerformanceCounter", "Int64*", Counter)
}
dif := A_TickCount - d
Clipboard := dif
MsgBox %dif% |
AutoIt version:
| Code: | $d = TimerInit()
$Counter = DllStructCreate("int")
For $i = 1 to 1000000
If Mod($i, 100) = 0 Then
ToolTip($i)
EndIf
DllCall("user32.dll", "none", "QueryPerformanceCounter", "ptr", DllStructGetPtr($Counter, 1))
Next
$dif = TimerDiff($d)
ClipPut($dif)
MsgBox(0, "", $dif) |
Time elapsed
AutoHotkey: 39 sec.
AutoIt: 49 sec.
AutoHotkey is still faster _________________ Sorry my poor English
Fincs
MsgBox % RegExReplace("Fernando Incs.", "^(\w).*\s+I(\w{3})\w*\.$", "$1i$2") |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|