ClarityZ Posted November 1, 2007 Share Posted November 1, 2007 Hi.. I want to make some script which can work same like Bot.. I have do some script, for bot, but it's can't work successfully.. Because some time the internet slow and sometime faster.. so my scrip can't work.. this is my script. #include <IE.au3> WinWaitActive ("Facebook | Counter Strike: Red Team Go - Microsoft Internet Explorer") sleep (10) MouseClick("left", 513, 828, 1) sleep (15) send ("Kilua") sleep(1005) mouseclick("left", 476,855,2) sleep (105) mouseclick("left",625,828,2) mouseclick("left",625,828,2) sleep (30000) sleep (10) MouseClick("left", 513, 828, 1) sleep (15) send ("killuaB") sleep(1005) mouseclick("left", 476,855,2) sleep (105) mouseclick("left",625,828,2) mouseclick("left",625,828,2) Exit I use this script to attack my another id in cs(facebook) but some time when my internet speed was slower, this scrip will be error.. so I want to ask some question.. Can Autoit scan some text, for example when error massage display, The autoit will refresh the page.. and Can Autoit scan some box and picture? if autoit can scan it, this is my logic #include <IE.au3> WinWaitActive ("Facebook | Counter Strike: Red Team Go - Microsoft Internet Explorer") sleep (10) $type_friend's_name = the box $attack_pic = click attack $health = my health $weapon = name of object in the page $buy_health = the box which you can put some thick $purchase_equipment = name object in weapon store First time, the autoit will click the box to type my friend's name and after it, the autoit will click attack picture.. and also will scan my health mouseclick ($type_friend's_name) sleep (30) send ("Kilua") mouseclick ("down", $type_friend's_name) <-- click the box bellow the type_friend's_name sleep (20) mouseclick ($attack_pic) if $health <> 300, then mouseclick ($waepon) sleep (300) mouseclick ($buy_health) sleep (20) mouseclick ("down",$purchase_equipment") sleep (300) endif and repeat until stop this is my idea but I can't make it because I don't have enough knowledge in autoit Anyone please Help me.. sorry for my bad English Thx Link to comment Share on other sites More sharing options...
Nahuel Posted November 1, 2007 Share Posted November 1, 2007 I don't understand why you include IE.au3 and then you click in the inputboxes and then use Send()? Look in the help file for the _IEForm*() functions. They do what you need. If you just want to keep it that way, use _IELoadWait() after you move to another page si it pauses until the page loads. Link to comment Share on other sites More sharing options...
ClarityZ Posted November 1, 2007 Author Share Posted November 1, 2007 Thx for the improvement dude.. I will use it.. thx Sorry cause I am Newbie Link to comment Share on other sites More sharing options...
aNewLyfe Posted November 1, 2007 Share Posted November 1, 2007 pixel functions would be usefull 4 you. for example get color of a link (for example its red); when u clicked on it page loads so color changes, so u can use a loop for this like ; if pixelgetcolor(x,y) = red(u need to input color code) then MouseClick("button",x,y,clicks,speed) else sleep(50) endif i used this way for a web based game darkthrone.  ~ Every Living Thing is a Code Snippet of World Application ~ Link to comment Share on other sites More sharing options...
ClarityZ Posted November 1, 2007 Author Share Posted November 1, 2007 (edited) Ow Nice I will try it! thx dude.. ^^ I will try it btw mistakila can you post your script? if you mind.. so I can study from your scrip.. thx Edited November 1, 2007 by ClarityZ Link to comment Share on other sites More sharing options...
jokke Posted November 1, 2007 Share Posted November 1, 2007 (edited) I dont know what you are really looking for, but here you have a aimbot if thats something you need. ;Aimbot! Dim $color = 0x000000 ;Hex code for color here. Dim $shade = 40 ;Shadevariation. Dim $square[4] = [100,100,100,100] ;You need to edit this to your fit. While 1 $search = PixelSearch($square[0],$square[1],$square[2],$square[3],$color,$shade) If UBound($search) > 0 Then MouseClick("left", $search[0], $search[1], 1) ;If color is found within the sqare left click it. EndIf Sleep(50) ;Delay the loop abit so it does not drain all cpu. WEnd Edited November 1, 2007 by jokke UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt. Link to comment Share on other sites More sharing options...
ClarityZ Posted November 2, 2007 Author Share Posted November 2, 2007 wow, nice but I am don't know some of the script because I am newbie huehuehue If UBound($search) > 0 Then MouseClick("left", $search[0], $search[1], 1) ;If color is found within the sqare left click it. endif I dunno in that part.. Ubound? for what is it? Thx for the script.. Link to comment Share on other sites More sharing options...
Nahuel Posted November 2, 2007 Share Posted November 2, 2007 Look in the help file And IMHO it's a very bad idea to use colors to click on a link when you can click by text and not depend on wether the window is active or not. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now