Sign in to follow this  
Followers 0
jaenster

For newbie's , a tut :)

68 posts in this topic

#1 ·  Posted (edited)

This is a tut for autoIT

To start you need AutoIT , you can found it here , http://www.autoitscript.com/autoit3/downloads.php

To make bot you must learn autoIT , for example we make a bot that copy past do

Sleep(5000) 
; This means that he will wait 5 seconds then can you switch to the progam that you need
send("Hello World")

We have send the chars H E L L O W O R L D to the window that will get the focus , but how do you make a new autoIT script ? Very easy , use Notepad

You press that the code copy paste what you want ^^.. Press F5 to run it , The program asks you to save it .. there is a big note here .. Call it HelloWorld.au3 , It must always end with .au3 , otherwise it wont start up correctly.. ok he starts , if it is good he send hello world to the window that has the focus.. which is a message box

Sleep(5000) 
; This means that he wait 5 second then can you swits to the progam that you need
$Variable = "Hello World"
send($Variable)

Now we have a variable, a variable sometimes starts with a $.

$Hello = "Hello" , $Jaenster = "diablo II" , $bye = "Few"..

If you understand all this then you can make this now

sleep(5000)
$nub1 = "32"
$nub2= "asf"
$nub3 = "Deepdesigns.nl"
send($nub1 & $nub2 & $nub3)

Now we have sent $nub1, $nub2 and $nub3 ..

sleep(5000)
$nub1 = "32"
send($nub1 &" Text")

Now you send a var and a text , very simple is it?

sleep(5000)
mousemove(1,1,10)

Moved your mouse to poision 1,1

sleep(5000)
For $i = 1 to 10
    tooltip("Count :"& $i)
    sleep(1000)
next

This is a Lot more .. but i will explain .. (For..Next) statment does this ,

for $i = 1 to 10
next

Expain , $i = 1 and every loop its $i = $i + 1 , if there are 5 loops done then $i = 6 .. why ? $i = 1 + 5 = 6 ... if he is done with 10 loops he stops why? "to 10" is the end of statment  .. if it is "to 11" then it loops 11 times ..

Do you still get the point ?

$Hello = "jaenster"
$HelloL = stringlen($hello)
msgbox(0,"A Message :)","The string is" & $hello)
msgbox(0,"A Message :)","The length of it is"  & $helloL)

We got len of $hello , thats 8 :lmao: now we can start to make a copy past bot

$clip = clipget()
msgbox(0,"Your clipboard",$clip)

This is what you got in your clipboard ;)

$clip = clipget()
msgbox(0,"Length of your clipboard",stringlen($clip))

Now you got the length of the text in your clipboard o:)

$hello = "jaenster"
msgbox(0,"tut",stringmid($hello,2,1))

Stringmid got 3 parameters :king: 1 = the sting , 2 = Startlocate , 3=Numbers of letters...

sleep(5000)
$clip = clipget()
for $i = 1 to stringlen($clip)
send(stringmid($clip,$i,1))
next

And you got a copy-Past-bot :lol:

But , maby too fast? The we got some to make it slowly :)

sleep(5000)
$clip = clipget()
for $i = 1 to stringlen($clip)
sleep(175)
send(stringmid($clip,$i,1))
next

Now you got 1 with copy paste bot with an amp from 280-300 ;)

Post if you like it ;)

do not copypast this :D

Edited by jaenster

-jaenster

Share this post


Link to post
Share on other sites



Oh this is going to be fun.

1. Before you start to try to write a tutorial, learn proper english. Broken english cannot be followed.

2.

We have send the chars H E L L O W O R L D to the window that will get the focus , but how do you make a new autoIT script ? Very easy , use Notepad

You press that the code copy paste what you want ^^.. Press F5 to run it , The program asks you to save it .. there is a big note here .. Call it HelloWorld.au3 , It must always end with .au3 , otherwise it wont start up correctly.. ok he starts , if it is good he send hello world to the window that has the focus.. which is a message box

Notepad does not run .au3 files. Scite does that. Text is not sent to a messagebox, it is sent to the active window. Message boxes are static.

3.

Now we have a variable, a variable sometimes starts with a $.

Variables ALWAYS start with $. There are other things such as macros and compiler directives that start with different characters (@ and # respectively), but they are not variables.

4. Be careful what you put in code boxes.

for $i = 1 to 10

next

Expain , $i = 1 and every loop its $i = $i + 1 , if there are 5 loops done then $i = 6 .. why ? $i = 1 + 5 = 6 ... if he is done with 10 loops he stops why? "to 10" is the end of statment .. if it is "to 11" then it loops 11 times ..

The above is placed in a code box in your post, but that will error out if a user tries to run that. The reason - your explanation is not commented, it is left normal and may be interpreted as code.

5.

But , maby too fast? The we got some to make it slowly :lmao:

sleep(5000)
$clip = clipget()
for $i = 1 to stringlen($clip)
sleep(175)
send(stringmid($clip,$i,1))
next
There is a better way to send characters slowly. Oh, and what the hell does this line mean?

Now you got 1 with copy paste bot with an amp from 280-300

6. In summary: learn english, your "tutorial" is overly basic and not well formatted, and you haven't acheived anything by doing all this.

Share this post


Link to post
Share on other sites

my english is bad , i know


-jaenster

Share this post


Link to post
Share on other sites

i think his english is good enough to understand :lmao:

Share this post


Link to post
Share on other sites

Yes i think the same , brood


-jaenster

Share this post


Link to post
Share on other sites

lol, this is really funny

i like your copy'n'paste-bot :lmao:

never thought of something like this before ;)

maybe you should do a little clipput before you run the "bot"

plz continue your tut - even if the english is not that good - but it does the job

i know we already have some really good tuts, but every1 has new ideas and maybe jaenster covers some parts of scripting others don't

Share this post


Link to post
Share on other sites

nuffilein805 i got now 5 tuts done :lmao:


-jaenster

Share this post


Link to post
Share on other sites

For you wouter , in dutch ..

Nou heb je een copy-past bot die 280-300 aanslagen per minute hebt ..

So can you read it?


-jaenster

Share this post


Link to post
Share on other sites

I cant made them sticky or other , The will be removed when nobody post


-jaenster

Share this post


Link to post
Share on other sites

nah thats a bad idea .. maby i can ask some mod to post it for me


-jaenster

Share this post


Link to post
Share on other sites

if mods edit my post they cant make it sticky ..


-jaenster

Share this post


Link to post
Share on other sites

Shall i do ?


-jaenster

Share this post


Link to post
Share on other sites

Thats true , 1 problem , Who are mod ^^?


-jaenster

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