|
You last visited: Today at 18:24
Advertisement
autoit bot making
Discussion on autoit bot making within the AutoIt forum part of the Coders Den category.
04/21/2014, 22:56
|
#1
|
elite*gold: 0
Join Date: Apr 2014
Posts: 3
Received Thanks: 0
|
autoit bot making
hi guys
as you see I am new
I wanted some help in making a bot it goes like this
what I wrote
the bot while circle around the points I have given
the mouse will click in the points I have given which while make the char move
and when the pixel detector (probably when you read pixel thing while think I am pro , no I took it from another post  ) detects something the bot will stop moving and click on the detected object until the character takes the object and then continue boting
and when I press esc it closes
proplems
when I press esc nothing happen
when it detects some thing it click on it the char go get it and then the bot doesn't continue
the script
:
Quote:
Local $nar = 1
; Script Start - Add your code below here
If _IsPressed ("1B") Then
$nar = 0
EndIf
$coor = PixelSearch( 170, 0, 1200, 720, 0xCA6AF1, 5, 1 )
If @error = 1 then
while $nar=1
MouseClick("right")
MouseMove ( 650 , 100)
MouseClick("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 650 , 50)
MouseClick("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 850 , 300)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 850 , 200)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 1050 , 400)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 1050 , 300)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseMove ( 850 , 500)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 850 , 600)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 650 , 600)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 650 , 600)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseMove ( 450 , 500)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 450 , 600)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 250 , 300)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 250 , 400)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 450 , 200)
MouseClick ("left")
sleep (500)
MouseClick("right")
MouseClick("right")
MouseMove ( 450 , 300)
MouseClick ("left")
sleep (500)
MouseClick("right")
WEnd
Elseif @error = 0 Then
$nar = 0
MouseClick( "left" ,$coor[0] , $coor [1] , 3)
sleep (2000)
$coor = PixelSearch( 170, 0, 1200, 720, 0xCA6AF1, 5, 1 )
ElseIf _IsPressed ("1B") <--- poor try
sleep (9999999999)
EndIf
|
mouse click left to move
mouse click right to attack
the last else if is a idiot try I added
please any one help me with it and fast
thanks
|
|
|
04/21/2014, 23:23
|
#2
|
elite*gold: 27
Join Date: Sep 2009
Posts: 5,609
Received Thanks: 1,596
|
Your at the wrong section
Try this..
PHP Code:
HotKeySet("{ESC}","_ExitByEscape")
while 1 $coor = PixelSearch( 170, 0, 1200, 720, 0xCA6AF1, 5, 1 ) If @error = 1 then while 1 MouseClick("right") MouseMove ( 650 , 100) MouseClick("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 650 , 50) MouseClick("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 850 , 300) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 850 , 200) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 1050 , 400) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 1050 , 300) MouseClick ("left") sleep (500)
MouseClick("right") MouseMove ( 850 , 500) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 850 , 600) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 650 , 600) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 650 , 600) MouseClick ("left") sleep (500)
MouseClick("right") MouseMove ( 450 , 500) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 450 , 600) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 250 , 300) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 250 , 400) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 450 , 200) MouseClick ("left") sleep (500) MouseClick("right")
MouseClick("right") MouseMove ( 450 , 300) MouseClick ("left") sleep (500) MouseClick("right") WEnd
Elseif @error = 0 Then MouseClick( "left" ,$coor[0] , $coor [1] , 3) sleep (2000) $coor = PixelSearch( 170, 0, 1200, 720, 0xCA6AF1, 5, 1 ) EndIf WEnd
Func _ExitByEscape() Local $i = 5 Do ToolTip("Bot will be close in " & $i & " seconds..",@DesktopWidth * 0.5,0) Sleep(1000) $i -= 1 Until $i = 0 Exit EndFunc
|
|
|
04/22/2014, 10:32
|
#3
|
elite*gold: 56
Join Date: Apr 2012
Posts: 18,409
Received Thanks: 2,733
|
General Gaming Discussion -> AutoIt
#moved
|
|
|
04/22/2014, 18:16
|
#4
|
elite*gold: 0
Join Date: Apr 2014
Posts: 3
Received Thanks: 0
|
Thanks man will try the code and tell you but thanks for th3 fast respond
|
|
|
 |
Similar Threads
|
Hey guys. i want some1 help me with making autoit bot!
07/31/2011 - Archlord - 13 Replies
Hey guys im looking for lil help since im "new guy here and junior member" And i need to learn some things i still dont know,but i got good idea by making autoit bot that could be simple and pretty good. il need help for it. we will make something like normal bot.. but its gonna WORK and it wont be complicated so new players know how to use it too...PM ME IF U WANNA HELP ME UP!
|
Making Auto Follow: Autoit
05/15/2010 - CO2 Programming - 0 Replies
So I have some what of a basic info on autoit. I've made a speed hack, but nothing else. I'm still a little stuck on making a auto follower. How can I find the two different addresses with 2 clients open. Also, wouldn't I just have the script say hold ctr and left click on the address? A source or some help would be nice :)
|
AutoIt bot making!
12/21/2009 - CO2 Guides & Templates - 8 Replies
Alright first you need to get AutoIt (autoitscript.com) Look for the downloads etc. Once downloaded right click on your desktop and go to New (like where you can create a new folder etc) And it will say new Autoit script and have the little picture, click it for the name, name it like test.au3. Ill explain a little program first the concept of Mouse clicking.
MouseClick("left") ;
Alright this will left click many times in VERY rapid succession. Now lets make it a little bit more...
|
[AutoIt] Making Simple Bots
01/27/2008 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 9 Replies
Hi, all you people out there who ever wanted to make bots, read this and you will be a step closer to making your own professional ones. Please read and please leave a thanx. Don't be lazy to read through, this will help. Garenteee you!
Stuff you Need:
1. AutoIt v3 (Get it here: AutoIt v3 Download)
Tutorial: MouseClick
Perform a mouse click operation.
MouseClick ( "button", x, y, clicks, speed)
|
All times are GMT +1. The time now is 18:24.
|
|