rylorg Posted December 24, 2006 Share Posted December 24, 2006 How do I tell it to get the pixel color and if its not the certain color do somthing? Thanks Link to comment Share on other sites More sharing options...
Valuater Posted December 24, 2006 Share Posted December 24, 2006 maybe... expandcollapse popup; Press Esc to terminate script, Pause/Break to "pause" Global $Paused, $Runner HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("{F9}", "Run_myScript") ;;;; Body of program would go here ;;;; While 1 If $Runner Then ToolTip('Script is "Running"', 0, 0) For $x = 50 To 70 Step 2 If PixelGetColor($x, 36) = 6510897 Then Send("{PAUSE}") ; $runner = 0 ; ????????? ExitLoop EndIf Next EndIf ToolTip("") Sleep(500) WEnd ;;;;;;;; Func TogglePause() $Paused = Not $Paused While $Paused Sleep(100) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc ;==>TogglePause Func Terminate() Exit 0 EndFunc ;==>Terminate Func Run_myScript() ; to stop AND Start your script $Runner = Not $Runner EndFunc ;==>Run_myScript 8) Link to comment Share on other sites More sharing options...
rylorg Posted December 24, 2006 Author Share Posted December 24, 2006 Thanks, but I dont understand how this would work, im making a bot and I need to scan the health bar and if its not green do some stuff. Im still geting the hang of autoit. Link to comment Share on other sites More sharing options...
Zedna Posted December 24, 2006 Share Posted December 24, 2006 (edited) Thanks, but I dont understand how this would work, im making a bot and I need to scan the health bar and if its not green do some stuff. Im still geting the hang of autoit.RTFM - read the fucking manualSorry for these bad words at Christmas daysbut this person is typical for RTFM EDIT: quick help: For Help press F1 in Scite Edited December 24, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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