Sign in to follow this  
Followers 0
spel565

problem

2 posts in this topic

I want the script to always look for the colour in $color at pixel 29,888 and if the $color is there i want the script to start a mousemove and then restart.

Or should i just put these every where? :/

$color = 0xFFBA39 While 1 If PixelGetColor(29, 888) = $color Then ExitLoop Else ContinueLoop EndIf WEnd

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I am not sure what do you really want but i try to explain what i wrote ;)

HotKeySet("{F2}", "stop")

$color = 0xF0F4F9; color of empty field in SciTE editor :)
While 1 
If PixelGetColor(658, 328) = $color Then 
MouseMove(800, 600)
EndIf
WEnd

Func stop()
    Exit
EndFunc

I add stop function because you can have problems with end script :evil:

Insert this code to your editor, run & you will se mouse move to 800,600 beacuse there is a 0xFOF4F9 color

If you push Win+D (key with windows logo) then all windows go minimized and mouse move was stopped :evil:

Edited by Sobiech

This world is crazy

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