Jump to content
Sign in to follow this  

Function parameters

Recommended Posts


Hey guys, I'm touching back with AutoIt after Multiple years; I have since learned Java, and seem to be doing okay-- until I wanted to optimize my code.


$item[5]=IniRead(@ScriptDir & "\test.ini","Variables","brace",1)
if $item[5]=1 Then MouseClick("secondary",  1720+Random(-15,15,1), 800+Random(-15,15,1))

Not working


Func clickIt($n,$ix, $iy,$item, $alt)
sleep(random(0, 200, 0));
;IniRead(@ScriptDir & "\test.ini","Variables",$item,0)
if $alt=1 then send("{altdown}");switch true/false for secondary ring under first on far right
if $item[$n]=1 Then MouseClick("secondary",  $ix+Random(-15,15,1), $iy+Random(-15,15,1))
if $alt=1 then send("{altup}")

It appears to be calling the clickIt function, but all ifs are being read as false; any suggestions for me?

thank you in advance!

Share this post

Link to post
Share on other sites

wow--- I'm retarded... I looked at that, and had to double check my array as it seemed the improper placement for $item. Thank you, that did the trick!


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.