Sign in to follow this  
Followers 0
lasse46

Random Mouseclick?

5 posts in this topic

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

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

Hmmm, diden't work? :think:

Share this post


Link to post
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.

 

Share this post


Link to post
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.

 

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  
Followers 0