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 and autoit?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Thu Jan 10, 2008 3:51 am    Post subject: autohotkey and autoit? Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Lexikos



Joined: 17 Oct 2006
Posts: 2739
Location: Australia, Qld

PostPosted: Thu Jan 10, 2008 4:34 am    Post subject: Re: autohotkey and autoit? Reply with quote

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



Joined: 12 Nov 2007
Posts: 64

PostPosted: Thu Jan 10, 2008 5:20 am    Post subject: yes Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
neXt



Joined: 18 Mar 2007
Posts: 463

PostPosted: Thu Jan 10, 2008 5:29 am    Post subject: Reply with quote

never tried autoit, but that looks like a common "do while" function.
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2739
Location: Australia, Qld

PostPosted: Thu Jan 10, 2008 7:40 am    Post subject: Reply with quote

neXt wrote:
never tried autoit, but that looks like a common "do while" function.
...but it's not. Razz 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. Laughing
Back to top
View user's profile Send private message
ManaUser



Joined: 24 May 2007
Posts: 906

PostPosted: Thu Jan 10, 2008 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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