Jump to content

Random Mouseclick?


Recommended Posts

Can't get this to work?

$random1 = "Random(340,467)"

$random2 = "Random(300,356)"

Sleep ("400")

MouseClick ("$random1, $random2")

Sleep ("400")

MouseClick ("$random1, $random2")

Sleep ("400")

MouseClick ("$random1, $random2")

Link to comment
Share on other sites

Can't get this to work?

$random1 = "Random(340,467)"

$random2 = "Random(300,356)"

Sleep ("400")

MouseClick ("$random1, $random2")

Sleep ("400")

MouseClick ("$random1, $random2")

Sleep ("400")

MouseClick ("$random1, $random2")

$random1 = Random(340,467)
$random2 = Random(300,356)
Sleep (400)
MouseClick ($random1, $random2)
Sleep (400)
MouseClick ($random1, $random2)
Sleep (400)
MouseClick ($random1, $random2)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

sorry forgot to add the param to mouseclick

try

$random1 = Random(340,467)
$random2 = Random(300,356)
Sleep (400)
MouseClick ("left", $random1, $random2)
Sleep (400)
MouseClick ("left", $random1, $random2)
Sleep (400)
MouseClick ("left", $random1, $random2)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

of course the above clicks 3 times at the same location, are meaning to do something more like?

Local $random1, $random2
_SetRandom($random1, $random2)
MouseClick ("left", $random1, $random2)
Sleep (400)
_SetRandom($random1, $random2)
MouseClick ("left", $random1, $random2)
Sleep (400)
_SetRandom($random1, $random2)
MouseClick ("left", $random1, $random2)

Func _SetRandom(ByRef $random1, ByRef $random2)
    $random1 = Random(340,467)
    $random2 = Random(300,356)
EndFunc

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...