go0b3r Posted March 11, 2006 Share Posted March 11, 2006 ok heres what id like to do. I know the basic commands, but dont know how to put it all together. I need it to (pixlesearch( 412, 35, 505, 47, 0x6CAD00 ) and i need it to press Tab UNTIL it finds that color, then it needs to press Q. Also on a side note. if im making it check the hp bar, how can i make it tell if my hp is low? Heres the info on the hp bar. (pixlesearch( 6, 40, 13, 145, FF0029 ) then when it sees that its like 1/2 full to press X, wait 3 seconds, and press 1. Also ( i know this is getting confusing) but i need it to then wait 16 seconds, and press X again until the hp bar is full. This script is WAY over my head lol, i know how i want it to work but dont know how to put it together. ty for any help Link to comment Share on other sites More sharing options...
Valuater Posted March 11, 2006 Share Posted March 11, 2006 do you have anything started show us what you have so far 8) Link to comment Share on other sites More sharing options...
go0b3r Posted March 11, 2006 Author Share Posted March 11, 2006 do you have anything startedshow us what you have so far8)just the pixle searches unfortunatly to make it send tab over and over do i do something like this?do send( {tab} ) sleep(1000)Until $color = 1sorry im terrible with this stuff, hell i dont even know what the color = 1 thing means lol, ive seen ppl do it so im guessing i need to. plz help i seriously dont know where to start. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 11, 2006 Moderators Share Posted March 11, 2006 You should definately read the tutorial and try Valuator's AutoIt 123... then try some practice stuff before you try to actually make something work for your game. Gotta Walk Before You Run... Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
poisonkiller Posted March 11, 2006 Share Posted March 11, 2006 I dont know, if it works, but anyway, here it is: Do $pix = pixelsearch( 412, 35, 505, 47, 0x6CAD00 ) send("{TAB}") Until $pix = 1 Send("Q") If PixelGetColor(6, 80) <> "16711721" Then Send("X") Sleep(3000) Send("1") Do Send("X") $pix = PixelGetColor(6, 144) Until $pix = "16711721" EndIf I think it wont work... Link to comment Share on other sites More sharing options...
go0b3r Posted March 11, 2006 Author Share Posted March 11, 2006 (edited) I dont know, if it works, but anyway, here it is: Do $pix = pixelsearch( 412, 35, 505, 47, 0x6CAD00 ) send("{TAB}") Until $pix = 1 Send("Q") If PixelGetColor(6, 80) <> "16711721" Then Send("X") Sleep(3000) Send("1") Do Send("X") $pix = PixelGetColor(6, 144) Until $pix = "16711721" EndIf I think it wont work... ty for trying, ill test it out edit: nope didn't work ty anyways Edited March 11, 2006 by go0b3r Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 11, 2006 Moderators Share Posted March 11, 2006 (edited) I dont know, if it works, but anyway, here it is: Do $pix = pixelsearch( 412, 35, 505, 47, 0x6CAD00 ) send("{TAB}") Until $pix = 1 Send("Q") If PixelGetColor(6, 80) <> "16711721" Then Send("X") Sleep(3000) Send("1") Do Send("X") $pix = PixelGetColor(6, 144) Until $pix = "16711721" EndIf I think it wont work...Why use a heximal 0x6CAD00 then a Decimal 16711721?Do $pix = pixelsearch( 412, 35, 505, 47, 0x6CAD00 ) send("{TAB}") Until IsArray($pix) Edited March 11, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valuater Posted March 11, 2006 Share Posted March 11, 2006 i know the color/set is not perfect .. but this should help expandcollapse popup; Press Esc to terminate script, Pause/Break to "pause" #include <GuiConstants.au3> Global $Paused, $Go, $begin HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") ; When check box is marked, call function "Go" While 1 $msg = GUIGetMsg() If $msg = -3 Then Exit $ans = PixelSearch( 412, 35, 505, 47, 0x6CAD00 ) If Not @error Then Send("Q",1) Else Send("{TAB}") EndIf If PixelGetColor( 6, 40) = 0xFF0029 Then Send("X",1) Sleep(3000) Send("1",1) $Go = 1 $begin = TimerInit() EndIf If $Go Then Go() WEnd ; =================== Functions ============= Func TogglePause() $Paused = Not $Paused While $Paused Sleep(100) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc Func Go() $dif = TimerDiff($begin) If $dif >= 16000 Then If PixelGetColor(6, 40) = 0xFF0029 Then Send("X", 1) $begin = TimerInit() Else $Go = 0 EndIf EndIf EndFunc Func Terminate() Exit EndFunc just bored.. 8) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 11, 2006 Moderators Share Posted March 11, 2006 I stand by my post of "Do the tutorials" rather than waisting time on something you don't even know how to edit to suit your needs. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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