Jump to content

Help with mouse to color.


Recommended Posts

While 1
$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 )
If Not @error Then
    MouseMove($coord[0], $coord[1])
EndIf
Sleep(250)

Finds a red pixel, and moves the mouse to it.

This could load the CPU usage maybe...

FootbaG
Link to comment
Share on other sites

While 1
$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 )
If Not @error Then
    MouseMove($coord[0], $coord[1])
EndIf
Sleep(250)

Finds a red pixel, and moves the mouse to it.

This could load the CPU usage maybe...

<{POST_SNAPBACK}>

Line 18

Sleep250

Error: "While" statement has no matching "WEnd" statement.

I tried putting in WEnd in at the end and it still did nothing...

Link to comment
Share on other sites

Line 18

Sleep250

Error: "While" statement has no matching "WEnd" statement.

I tried putting in WEnd in at the end and it still did nothing...

<{POST_SNAPBACK}>

While 1

$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 )

If Not @error Then

MouseMove($coord[0], $coord[1])

EndIf

Sleep(250)

WEnd

Visit http://www.blizzedout.com/forums/register....referrerid=8306 for the top blizzard hacks. WoW, TfT, D2/LOD, CS. You name it we got it!

Link to comment
Share on other sites

Line 18

Sleep250

Error: "While" statement has no matching "WEnd" statement.

I tried putting in WEnd in at the end and it still did nothing...

<{POST_SNAPBACK}>

If the script didn't do anything (after putting WEnd at the end of the script) then it obviously did not find the color in the space specified by the script. Either change the color it is looking for and/or change the coordinates it is looking within.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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