Jump to content

Recommended Posts

Posted

when i try run my code, i receive this error msg

==> Subscript used on non-accessible variable.:
MouseClick ( "right" [, 1782, 620 [, clicks = 1 [, speed = 10]]] )
MouseClick ( "right" ^ ERROR
>Exit code: 1    Time: 2.105

 

why?

 

 

the code:

 

 

#include <AutoItConstants.au3>
HotKeySet("{F3}","_Start")

While 1
    Sleep(10)
WEnd

Func _Start()
    ;your script
MouseClick ( "right" [, 1782, 620 [, clicks = 1 [, speed = 10]]] )

MouseClick ( "left" [, 994, 521 [, clicks = 1 [, speed = 10]]] )

EndFunc

Posted (edited)

Read in helpfile and understand the conventions: First line must  be:

MouseClick ("right" , 1782, 620 , clicks = 1 , speed = 10)

The brackets are only to show: "The parameter is optional.

Edited by AutoBert
Posted

==> Unknown function name.:
MouseClick ("right" , 1782, 620 , clicks = 1 , speed = 10)
MouseClick ("right" , 1782, 620 , ^ ERROR
>Exit code: 1    Time: 1.895

Posted
2 minutes ago, dnszs said:

==> Unknown function name.:
MouseClick ("right" , 1782, 620 , clicks = 1 , speed = 10)
MouseClick ("right" , 1782, 620 , ^ ERROR
>Exit code: 1    Time: 1.895

Func _Start()
    ;your script
MouseClick ("right" , 1782, 620 , clicks = 1 , speed = 10)

MouseClick ("left" , 994, 521 , clicks = 1 , speed = 10)

EndFunc

Posted
16 minutes ago, dnszs said:

==> Unknown function name.:
MouseClick ("right" , 1782, 620 , clicks = 1 , speed = 10)
MouseClick ("right" , 1782, 620 , ^ ERROR
>Exit code: 1    Time: 1.895

yea bro, now working... thank you

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
  • Recently Browsing   0 members

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