dragonheard Posted November 5, 2011 Posted November 5, 2011 hello all a long time ago i asked how to make my mouse move to a certain color i got a example code but it doesnt seem to work anymore? this is the code: $PixelLoc = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, $vHexColor) ;MsgBox(0, "", $PixelLoc[0] & ":" & $PixelLoc[1]) If Not @error Then MouseClick("primary", $PixelLoc[0], $PixelLoc[1]) EndIf now it doesnt seem to move my mouse to the color (at all.) please help .
Developers Jos Posted November 5, 2011 Developers Posted November 5, 2011 Why would it move the mouse at all? You didn't post the whole code and you failed to tell us what you have done to debug it... Is PixelSearch returning an error? What have you changed since this was made for you in March? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
dragonheard Posted November 6, 2011 Author Posted November 6, 2011 (edited) i didnt change anything at all though i didnt code for a long time.. heres the full code i made so far. While 1=1 winwaitactive("Counter-Strike Source") hotkeyset ("{p}","pauze") $PixelLoc =PixelSearch(0, 0,1679,1049,38134,0) ;MsgBox(0, "", $PixelLoc[0] & ":" & $PixelLoc[1]) If Not @error Then mousemove($PixelLoc[0], $PixelLoc[1]) MouseClick("primary", $PixelLoc[0], $PixelLoc[1]) EndIf wend func pauze () msgbox(1,"pauze","hij is gepauzeerd druk op ok om hem weer te starten") EndFunc please tell me what im doing wrong. ps: the pauze(pause) func doesnt seem to work either. Edited November 6, 2011 by dragonheard
Developers Jos Posted November 6, 2011 Developers Posted November 6, 2011 Ok, dit is voor een game bot? Heb je onze forum rules gelezen? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
dragonheard Posted November 6, 2011 Author Posted November 6, 2011 uhm eerlijk gezegd nee maar ik probeer hem ook niet te posten ofso ik wil hem maken en dan testen en als ie werkt dan weet ik dat ik het goed heb gedaan en als ik het goed heb gedaan dan is t een begin in programmeren daar dat toch is wat ik later wil gaan doen.
Developers Jos Posted November 6, 2011 Developers Posted November 6, 2011 Well, the code shows clearly its for game bot purposes so this topic is closed and you are expected to be served the warning to read our forums rules. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts