spel565 Posted January 5, 2010 Posted January 5, 2010 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
Sobiech Posted January 5, 2010 Posted January 5, 2010 (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 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 Edited January 5, 2010 by Sobiech This world is crazy
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now