| View previous topic :: View next topic |
| Author |
Message |
emoyasha
Joined: 12 Nov 2007 Posts: 64
|
Posted: Thu Jan 10, 2008 3:51 am Post subject: autohotkey and autoit? |
|
|
well i have downloaded autoit, as i am a faithfull autohotkey programer (first programing launguge i ever saw, and i foound it in a game cheat package. however i do beleive ahk has a much better syntax and is easyer to understand and munipulate because this function in ahk
| Code: |
loop 10
{
a +=1
msgbox %a%
}
|
is
| Code: | $i = 0
Do
MsgBox(0, "Value of $i is:", $i)
$i = $i + 1
Until $i = 10 |
now ahk dosent require all the parenteses or optional paramiter and is organised by blocks and the number of time to do it at the top while aut simply has a do at the begning and untill with the end statment at the end
however one feature i do liek of aut is the window info. i know ahk has one similar but it is less detailed
what is your oppinion.?
sorry for bad spelling, also i feel that autohotkey users are much nier and friendlier, int he autoit forms i fet all formal, here its laid back. _________________ online .ini reader with encryption
[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url] |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Thu Jan 10, 2008 4:34 am Post subject: Re: autohotkey and autoit? |
|
|
| emoyasha wrote: | | however one feature i do liek of aut is the window info. i know ahk has one similar but it is less detailed | AHK Window Info
| Quote: | | Code: | $i = 0
Do
MsgBox(0, "Value of $i is:", $i)
$i = $i + 1
Until $i = 10
|
| Technically that would become:
| Code: | Loop, 10
MsgBox % "Value of $i is:" . A_Index-1 | ...since $i is 0 on the first iteration, and is incremented after the MsgBox (so 10 is never shown.)
| Quote: | | now ahk dosent require all the parenteses or optional paramiter |
FYI, MsgBox is special in that AutoHotkey automatically chooses the more appropriate syntax.
| Code: | MsgBox, Text
MsgBox [, Options, Title, Text, Timeout] |
|
|
| Back to top |
|
 |
emoyasha
Joined: 12 Nov 2007 Posts: 64
|
Posted: Thu Jan 10, 2008 5:20 am Post subject: yes |
|
|
true true but it is still easier, and yes youo prov emy pooint more, ahk is shorter, and fast ( on some things) but unles si have to use autoit i dont _________________ online .ini reader with encryption
[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url] |
|
| Back to top |
|
 |
neXt
Joined: 18 Mar 2007 Posts: 463
|
Posted: Thu Jan 10, 2008 5:29 am Post subject: |
|
|
| never tried autoit, but that looks like a common "do while" function. |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Thu Jan 10, 2008 7:40 am Post subject: |
|
|
| neXt wrote: | | never tried autoit, but that looks like a common "do while" function. | ...but it's not. Do..Until loops until - not while - a condition is met. Also, it executes at least once, whereas do..while would execute only if the condition is met. Btw, they are Planned Features:
| Quote: | | While-loops and Do-Loops (to improve script readability and maintainability); |
I downloaded AutoIT a while back... I lost interest before I wrote even a single line of code.  |
|
| Back to top |
|
 |
ManaUser
Joined: 24 May 2007 Posts: 906
|
Posted: Thu Jan 10, 2008 8:30 am Post subject: |
|
|
| Personally, I think the AutoHotkey syntax is kind of awkward, especially the %% thing. But it's so awesome in in other ways that I'm willing to overlook it. (Seriously, you have no idea who long I'd been looking for a good windows macro utility, and AutoHotkey does that and more). AutoIt syntax looks a little more traditional but I haven't actually tried it either. I agree that this forum seems friendlier. And that's very important when you're just starting. |
|
| Back to top |
|
 |
|