AutoHotkey Community

It is currently May 25th, 2012, 1:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 104 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject:
PostPosted: July 26th, 2007, 9:31 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Laszlo wrote:
I don't understand: why you guys respond to trolls?

1) Because we like to argue! :P
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... :)

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 26th, 2007, 10:20 am 
Quote:
The bias is indeed on the required field, while none is required in the things we like about it...
:wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 26th, 2007, 11:04 am 
_ok, i will not argue with you anymore (it is just useless waste of time because I know AutoIt is better :lol: ) so bye and see you (read: f**k you :wink: )_


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 26th, 2007, 11:32 am 
Image 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 26th, 2007, 1:57 pm 
i542 wrote:
it is just useless waste of time
Aaah, so we can say that sometime, i542 is right! 8) :P

BTW, I rarely see useful waste of time... :twisted:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 26th, 2007, 2:23 pm 
Quote:
BTW, I rarely see useful waste of time...
Isn't that how those geeks naming AU3's performance ? :lol:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 29th, 2007, 1:12 pm 
BoBo¨ wrote:
Quote:
BTW, I rarely see useful waste of time...
Isn't that how those geeks naming AU3's performance ? :lol:
Noooooo.... :?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 31st, 2007, 4:15 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
Grumpy wrote:
BTW, I rarely see useful waste of time... :twisted:
Is this your first time at this forum... :?: :lol:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 7th, 2007, 6:48 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 7th, 2007, 1:52 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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 :D

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. 8)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 7th, 2007, 3:24 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
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 :o
AutoIt: 71 ms

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

factor/$factor value: 10000000
AutoHotkey: 40 sec. :roll:
AutoIt: 1 min. 13 sec. :cry: 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]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 7th, 2007, 4:31 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
@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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 7th, 2007, 7:44 pm 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
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!

_________________
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]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 8th, 2007, 8:28 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Just check out million DllCalls to some system function in both languages and you will feel the difference.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 8th, 2007, 10:46 am 
Offline
User avatar

Joined: May 5th, 2007, 7:24 pm
Posts: 1240
Location: Seville, Spain
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

_________________
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]


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 104 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Zaelia and 45 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group