Jump to content

Mouseclick and Arrays!


Recommended Posts

Okay so mouseclick apparently can't handle arrays or variables:

$temp1 = "619 , 755"
    $temp = $Positions[13][1]
    MsgBox(64, "Test", $temp)
    MouseClick("right" , $temp1 , 1)
                MouseClick("right" , $temp , 1)

The array contains 619 , 755 and so does the temp1 variable... What's the issue? The script just rolls the mouse to the top mid of the screen and rclicks.

-Jace

Link to comment
Share on other sites

$temp1 is just a string with a comma in it, and is treated as a single parameter when used in a function-call.

MouseClick("right" , "619 , 755", 1)

$temp is an array, but I can't find anywhere in the helpfile where it states that MouseClick can be passed an

array. The issue isn't on AutoIt's part but on yours.

Edited by Helge
Link to comment
Share on other sites

$temp1 is just a string with a comma in it, and is treated as a single parameter when used in a function-call.

MouseClick("right" , "619 , 755", 1)

$temp is an array, but I can't find anywhere in the helpfile where it states that MouseClick can be passed an

array. The issue isn't on AutoIt's part but on yours.

So there is no way to read mouse coordinates from an INI file and pass them to MouseClick?
Link to comment
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
 Share

  • Recently Browsing   0 members

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