Zisly
Intermediate OT User
- Joined
- Jun 9, 2008
- Messages
- 7,338
- Reaction score
- 120
I decided to make a little tutorial for the scripting language AutoIt.
But first you will need to install AutoIt 3, if you don't already have it.
You can get it from HERE
Now that you have installed it we can begin, first open the Scite editor, now we can begin
We will start with the classic Hello World.
When you run the script it will look like this:
Ok, now I will explain.
All functions in AutoIt take parameters, in this case we have 3, flag,title and text.
I will start with the flags.
The flag in this code is the 0 , the flag changes the look type of the MsgBox.
So if we change the 0 to a 1 it will look like this:
As you can see the window now has two button OK and Cancel.
(I wont post all flags as this tutorial will get too big then)
But you can check out the MsgBox flags and what they do in the Help File.
Now we will move to the title and text, "AutoIt" (title) "Hello World!" (text) both are string parameters, when we use strings we surround the text with either double quots " or with single quots ' , both work fine.
So if you would want the title to be Tibia and the text to be Tibia rox!, then you would just write like this:
Which will look like this:
TIP
Read the help file which came with the program.
Of course you can do much more than just making message windows with AutoIt, but this is just a basic thing so you can understand
If people seem interested to learn this language I will make some more tutorials
If you think it's use full give reputation please!
But first you will need to install AutoIt 3, if you don't already have it.
You can get it from HERE
Now that you have installed it we can begin, first open the Scite editor, now we can begin
We will start with the classic Hello World.
Code:
MsgBox(0, "AutoIt", "Hello World!")
Ok, now I will explain.
All functions in AutoIt take parameters, in this case we have 3, flag,title and text.
I will start with the flags.
The flag in this code is the 0 , the flag changes the look type of the MsgBox.
So if we change the 0 to a 1 it will look like this:
As you can see the window now has two button OK and Cancel.
(I wont post all flags as this tutorial will get too big then)
But you can check out the MsgBox flags and what they do in the Help File.
Now we will move to the title and text, "AutoIt" (title) "Hello World!" (text) both are string parameters, when we use strings we surround the text with either double quots " or with single quots ' , both work fine.
So if you would want the title to be Tibia and the text to be Tibia rox!, then you would just write like this:
Code:
MsgBox(0, "Tibia", "Tibia rox!")
TIP
Read the help file which came with the program.
Of course you can do much more than just making message windows with AutoIt, but this is just a basic thing so you can understand
If people seem interested to learn this language I will make some more tutorials
If you think it's use full give reputation please!
Last edited: