Jump to content

Recommended Posts

Posted

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
Posted

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.
  :)

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
Posted

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.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...