AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AutoHotkey vs. AutoIt?
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Thu Jul 26, 2007 8:31 am    Post subject: Reply with quote

Laszlo wrote:
I don't understand: why you guys respond to trolls?

1) Because we like to argue! Razz
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... Smile
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
BoBoĻ
Guest





PostPosted: Thu Jul 26, 2007 9:20 am    Post subject: Reply with quote

Quote:
The bias is indeed on the required field, while none is required in the things we like about it...
Wink
Back to top
i542
Guest





PostPosted: Thu Jul 26, 2007 10:04 am    Post subject: Reply with quote

_ok, i will not argue with you anymore (it is just useless waste of time because I know AutoIt is better Laughing ) so bye and see you (read: f**k you Wink )_
Back to top
BoBoĻ
Guest





PostPosted: Thu Jul 26, 2007 10:32 am    Post subject: Reply with quote

Cool
Back to top
Grumpy
Guest





PostPosted: Thu Jul 26, 2007 12:57 pm    Post subject: Reply with quote

i542 wrote:
it is just useless waste of time
Aaah, so we can say that sometime, i542 is right! Cool Razz

BTW, I rarely see useful waste of time... Twisted Evil
Back to top
BoBoĻ
Guest





PostPosted: Thu Jul 26, 2007 1:23 pm    Post subject: Reply with quote

Quote:
BTW, I rarely see useful waste of time...
Isn't that how those geeks naming AU3's performance ? Laughing
Back to top
i542
Guest





PostPosted: Sun Jul 29, 2007 12:12 pm    Post subject: Reply with quote

BoBoĻ wrote:
Quote:
BTW, I rarely see useful waste of time...
Isn't that how those geeks naming AU3's performance ? Laughing
Noooooo.... Confused
Back to top
corrupt



Joined: 29 Dec 2004
Posts: 2436

PostPosted: Tue Jul 31, 2007 3:15 am    Post subject: Reply with quote

Grumpy wrote:
BTW, I rarely see useful waste of time... Twisted Evil
Is this your first time at this forum... Question Laughing
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Tue Aug 07, 2007 5:48 am    Post subject: Reply with quote

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

PostPosted: Tue Aug 07, 2007 12:52 pm    Post subject: Reply with quote

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 Very Happy

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. Cool
_________________
Back to top
View user's profile Send private message MSN Messenger
fincs



Joined: 05 May 2007
Posts: 82
Location: Seville, Spain

PostPosted: Tue Aug 07, 2007 2:24 pm    Post subject: Reply with quote

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 Surprised
AutoIt: 71 ms

factor/$factor value: 100000
AutoHotkey: 375 ms Wink
AutoIt: 729 ms

factor/$factor value: 10000000
AutoHotkey: 40 sec. Rolling Eyes
AutoIt: 1 min. 13 sec. Crying or Very sad 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
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4078
Location: Pittsburgh

PostPosted: Tue Aug 07, 2007 3:31 pm    Post subject: Reply with quote

@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
View user's profile Send private message
fincs



Joined: 05 May 2007
Posts: 82
Location: Seville, Spain

PostPosted: Tue Aug 07, 2007 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3652
Location: Belgrade

PostPosted: Wed Aug 08, 2007 7:28 am    Post subject: Reply with quote

Just check out million DllCalls to some system function in both languages and you will feel the difference.
_________________
Back to top
View user's profile Send private message MSN Messenger
fincs



Joined: 05 May 2007
Posts: 82
Location: Seville, Spain

PostPosted: Wed Aug 08, 2007 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group