lasse46 Posted April 17, 2006 Share Posted April 17, 2006 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 More sharing options...
GaryFrost Posted April 17, 2006 Share Posted April 17, 2006 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 More sharing options...
lasse46 Posted April 17, 2006 Author Share Posted April 17, 2006 Hmmm, diden't work? Link to comment Share on other sites More sharing options...
GaryFrost Posted April 17, 2006 Share Posted April 17, 2006 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 More sharing options...
GaryFrost Posted April 17, 2006 Share Posted April 17, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now