Guest keebler Posted May 16, 2004 Share Posted May 16, 2004 I am trying to get a script to work where the mouse will give a random mouseclick withing a set region. Currently I've tried to use the following and it doesn't seem to work Random, x1, 0, 400 Random, y1, 0, 400 mousemove, x1, y1 LeftClick, x1, y1 Sure hope someone has a solution, thanks Link to comment Share on other sites More sharing options...
brett Posted May 16, 2004 Share Posted May 16, 2004 Try this: $x = Random ( 0, 100 ); 0-100 is the area you want the random click to be $y = Random ( 0, 100 ) MouseClick ( "Left", $x, $y, 1, 1 ) -Brett Link to comment Share on other sites More sharing options...
Guest keebler Posted May 16, 2004 Share Posted May 16, 2004 Is your solution for version 2 or 3? Link to comment Share on other sites More sharing options...
brett Posted May 16, 2004 Share Posted May 16, 2004 o probably not sorry...lol i've never programed in v2. why not switch to v3? -Brett Link to comment Share on other sites More sharing options...
Administrators Jon Posted May 16, 2004 Administrators Share Posted May 16, 2004 I am trying to get a script to work where the mouse will give a random mouseclick withing a set region. Currently I've tried to use the following and it doesn't seem to work Random, x1, 0, 400 Random, y1, 0, 400 mousemove, x1, y1 LeftClick, x1, y1 Sure hope someone has a solution, thanksIt's been a long time since I've used v2, but try: Random, x1, 0, 400 Random, y1, 0, 400 mousemove, %x1%, %y1% LeftClick, %x1%, %y1% Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Guest keebler Posted May 17, 2004 Share Posted May 17, 2004 I'll give that a try when I get back home later this week. Thanks all for the help. Link to comment Share on other sites More sharing options...
Recommended Posts