Jump to content

MouseClick on browser game


Recommended Posts

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

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

;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

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

  • 4 months later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...