bustedboy Posted December 15, 2006 Posted December 15, 2006 hey guys..im new to macros..erm..i would like to create a script that whenever the pixel of location 340, 586 turns to the hex colour of BEBEDC , that the macro would press ctrl 5 times or so....and i would also like this process to be repeated..any help pls?....and oso plus a hotkey CODEGlobal $Paused HotKeySet("{F12}", "Startmacro") HotKeySet("{F11}", "TogglePause") Func TogglePause() $Paused = NOT $Paused While $Paused Sleep(100) WEnd EndFunc ;;;;;;;;;;;; Func Startmacro() While 1 (i need help here on how to press ctrl 5 times when pixel at X = 340 & Y = 586 turns to 0xBEBEBC) WEnd EndFunc erm this is what i could gather...is what i am doing correect?....i nid help on the impt part =D help would be greatly appreciated
theguy0000 Posted December 15, 2006 Posted December 15, 2006 Global $Paused HotKeySet("{F12}", "Startmacro") HotKeySet("{F11}", "TogglePause") Func TogglePause() $Paused = NOT $Paused While $Paused Sleep(100) WEnd EndFunc ;;;;;;;;;;;; Func Startmacro() While 1 If PixelGetColor (340, 586) = Dec (0xBEBEBC) Then Send ("{LCTRL 5}") EndIf WEnd EndFunc The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
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