Sign in to follow this  
Followers 0
fariswheel609

Help with mouse to color.

9 posts in this topic

Hi,

How can i make a script where when certain colored pixel shows move mouse to it?and how do i make this always active? like as if it follows it

Share this post


Link to post
Share on other sites



Hi,

How can i make a script where when certain colored pixel shows move mouse to it?and how do i make this always active? like as if it follows it

<{POST_SNAPBACK}>

hheelloo

Share this post


Link to post
Share on other sites

In a program or on the screen in general?

<{POST_SNAPBACK}>

Well in the program i can return a value for each coloured pixel with the cursor on it.

But i need the mouse to follow the certain colored pixel :whistle:

Share this post


Link to post
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...


FootbaG

Share this post


Link to post
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...

Share this post


Link to post
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!

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0