dnszs Posted November 16, 2016 Share Posted November 16, 2016 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 Link to comment Share on other sites More sharing options...
AutoBert Posted November 16, 2016 Share Posted November 16, 2016 (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 November 16, 2016 by AutoBert Link to comment Share on other sites More sharing options...
dnszs Posted November 16, 2016 Author Share Posted November 16, 2016 ==> Unknown function name.: MouseClick ("right" , 1782, 620 , clicks = 1 , speed = 10) MouseClick ("right" , 1782, 620 , ^ ERROR >Exit code: 1 Time: 1.895 Link to comment Share on other sites More sharing options...
dnszs Posted November 16, 2016 Author Share Posted November 16, 2016 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 Link to comment Share on other sites More sharing options...
aa2zz6 Posted November 16, 2016 Share Posted November 16, 2016 @dnszs - Autobert was giving you the definitions of click and speed settings. When you write it out it'll look like... MouseClick("right", 1782, 620, 1, 10) AutoBert 1 Link to comment Share on other sites More sharing options...
dnszs Posted November 16, 2016 Author Share Posted November 16, 2016 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 Link to comment Share on other sites More sharing options...
aa2zz6 Posted November 16, 2016 Share Posted November 16, 2016 (edited) Great to hear! Edited November 16, 2016 by aa2zz6 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