Sign in to follow this  
Followers 0
BlazingFire

Autoit3 vs LibertyBASIC

3 posts in this topic

Sorry if thsi the wrong place to post this.

Did anyone know that AutoScript got different commands but is base off of LibertyBASIC (most basic programs)? Thats right, LB. Here are something to compare:

Code:

calldll#user32, "MessageBoxA",_

0 as long,_

"some text" as ptr,_

"title" as ptr,_

mbresult as long, mbflag as long

Compare to AutoIt3 Commands:

Code:

;Modify to make it shorter

$result = DllCall("user32.dll", "int", "MessageBox",

"hwnd", 0, "str", "Some text", "str", "Some title", "int", 0)

Here is something else. When you use a var like this :

Code:

libby$="lb"

Its something like this in AutoIt

Code:

$libby="lb"

Using command: FOR/NEXT is something base on AutoIt3. like this in LB

Code:

for x=5 to 0 step -1

notice"Countdown"+chr$(13)+x

next

notice"Blastoff"

here is a code in AT3:

Code:

For $i = 5 to 1 Step -1

MsgBox(0, "Count down!", $i)

Next

MsgBox(0,"", "Blast Off!")

Making functions? Here is a way in LB:

Code:

function link(server$, url$)

if url$="" then

notice"You dont got a url"

end if

end function

and in AT3:

Code:

Func link($server, $url)

if $url="" then

msgbox(0, "NO Url", "You dont got a url in place")

endif

endfunc

All of this is base on LB. Its so easy too. Most basic program are base on AT3. This can help many developers.

Want to get a username in AT3? then use this:

msgbox(0, "Username", "Your username is " & @userName)

This is amazing and easy to use when you understand most of the basic commands.

p.s

This is not to promot AT3, but to compare it with LB.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0