jeffrey1019 Posted April 3, 2010 Share Posted April 3, 2010 hello i want to let me mouse click on a place MouseClick(1662,880) how do i put that in this script? Hotkey ;HotKeySet("!e", "_Exit") HotkeySet ("!e","_Exit") ToolTip("Running...",0,0) while 1 $Variable = PixelSearch(464,52,1735,944,0xFEFFEA) If IsArray($Variable) = True Then MouseMove($Variable[0], $Variable[1], 1) ; 1 MouseClick("left") sleep(4000) Endif WEnd ; Func _Exit () ; Exit ; EndFunc Endfunc Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 3, 2010 Share Posted April 3, 2010 (edited) Use the correct syntax for MouseClick. Also, The MouseMove function isn't really needed with MouseClick in this case. Edited April 3, 2010 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
jeffrey1019 Posted April 3, 2010 Author Share Posted April 3, 2010 where do i need to put MouseClick(1662,880)in the script to let it mouseclick to 1662,880? each time after the while 1 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 3, 2010 Share Posted April 3, 2010 Put it in place of MouseClick("left"). - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
jeffrey1019 Posted April 3, 2010 Author Share Posted April 3, 2010 but than me pixel saerch bot dosent work Link to comment Share on other sites More sharing options...
ForsakenGod Posted April 3, 2010 Share Posted April 3, 2010 Try this ;HotKeySet("!e", "_Exit") HotkeySet ("!e","_Exit") While 1 ToolTip("Running...",0,0) $Variable = PixelSearch(464,52,1735,944,0xFEFFEA) If IsArray($Variable) Then MouseClick("left",$Variable[0], $Variable[1] ,1,0) Sleep(4000) EndIf WEnd ; Func _Exit () ; Exit ; EndFunc Endfunc GL&HF Btw welcome on AutoIt forums ! Link to comment Share on other sites More sharing options...
jeffrey1019 Posted April 3, 2010 Author Share Posted April 3, 2010 i mean how do i let me MouseClick go to location (1662,880)and click after he cliked the pixel search like if he got clicked on the pixel than let the mouse go to 1662,880 and click Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 3, 2010 Share Posted April 3, 2010 Put a second MouseClick after the first one . - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
jeffrey1019 Posted April 3, 2010 Author Share Posted April 3, 2010 ;HotKeySet("!e", "_Exit") HotkeySet ("!e","_Exit") While 1 ToolTip("Running...",0,0) $Variable = PixelSearch(464,52,1735,944,0xFEFFEA) If IsArray($Variable) Then MouseClick("left",$Variable[0], $Variable[1] ,1,0) Sleep(4000) MouseClick(1590,892) EndIf WEnd ; Func _Exit () ; Exit ; EndFunc Endfunc if u mean it like that it still dosent work. still dosent go to 1590,892 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 3, 2010 Share Posted April 3, 2010 Syntax again. Try MouseClick("left", 1590, 892) - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
jeffrey1019 Posted April 3, 2010 Author Share Posted April 3, 2010 thanks it works but can it be like this to ;HotKeySet("!e", "_Exit") HotkeySet ("!e","_Exit") While 1 ToolTip("Running...",0,0) $Variable = PixelSearch(464,52,1735,944,0xFEFFEA) If IsArray($Variable) Then MouseClick("left",$Variable[0], $Variable[1] ,1,0) Sleep(4000) MouseClick("left",1590,892) MouseClick("left",$Variable[0], $variable[1] ,1,0) Sleep(4000) MouseClick("left",1250,435) EndIf WEnd ; Func _Exit () ; Exit ; EndFunc Endfunc Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 3, 2010 Share Posted April 3, 2010 (edited) If you need it to do that, ya. Put Sleep(100) between the 2nd and 3rd MouseClick. You might not need to, so try it both ways. Edited April 3, 2010 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
jeffrey1019 Posted August 30, 2010 Author Share Posted August 30, 2010 i made bot but i have 1 problem more whit the pixel the glitters keep changing colors and not always the same color can some 1tell me how i fix that bec now me bot still dosent work Link to comment Share on other sites More sharing options...
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