Jump to content

Recommended Posts

Posted

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")

Posted

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.

 

Posted

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.

 

Posted

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.

 

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
×
×
  • Create New...