Sign in to follow this  
Followers 0
dragonheard

pixel search need help

6 posts in this topic

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 .

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by dragonheard

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0