Sign in to follow this  
Followers 0
jeffrey1019

MouseClick on browser game

13 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Use the correct syntax for MouseClick. Also, The MouseMove function isn't really needed with MouseClick in this case.

Edited by snowmaker

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Put it in place of MouseClick("left").


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

but than me pixel saerch bot dosent work

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

;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

Share this post


Link to post
Share on other sites

Syntax again. Try MouseClick("left", 1590, 892)


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#12 ·  Posted (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 by snowmaker

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

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 ;)

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