Jump to content

Need Help with a fairly basic script


Recommended Posts

I dont think any of you experienced guys will have trouble putting this together. (I on the other hand dont have a chance lol)

If you can help - heres what I need.

1. One left mouseclick to be performed randomly between 1-2 seconds randomly between 1200-1300 on the X axis and randomly between 770 and 780 on the Y axis.

2. Then one left mouseclick performed randomly between 1-2 seconds randomly between 1500-1590 on the X axis and randomly between 750 and 755 on the Y axis.

3. Loop this so it repeats itself over and over.

If anyone can write the script for this for me I would appreciate it very much.

Daslick has offered this as a start, it doesnt mean anything to me but maybe someone else can use it:

int $random_x
int $random_y
int $random_time
While 1; loop
    $random_x = random(.....
    $random_y = random(.....
    $random_time = random(...
    mouseclick(...
    
    $random_x = random(.....
    $random_y = random(.....
    $random_time = random(...
    mousclick(...
Wend
Edited by llllJakubllll
Link to comment
Share on other sites

I dont think any of you experienced guys will have trouble putting this together. (I on the other hand dont have a chance lol)

If you can help - heres what I need.

1. One left mouseclick to be performed randomly between 1-2 seconds randomly between 1200-1300 on the X axis and randomly between 770 and 780 on the Y axis.

2. Then one left mouseclick performed randomly between 1-2 seconds randomly between 1500-1590 on the X axis and randomly between 750 and 755 on the Y axis.

3. Loop this so it repeats itself over and over.

If anyone can write the script for this for me I would appreciate it very much.

1 & 2 - Look in the helpfile for mousemove functions.

3 - Look in the helpfile for while loop.

You need to write some code for us to help you.

:D

Link to comment
Share on other sites

I dont think any of you experienced guys will have trouble putting this together. (I on the other hand dont have a chance lol)

If you can help - heres what I need.

1. One left mouseclick to be performed randomly between 1-2 seconds randomly between 1200-1300 on the X axis and randomly between 770 and 780 on the Y axis.

2. Then one left mouseclick performed randomly between 1-2 seconds randomly between 1500-1590 on the X axis and randomly between 750 and 755 on the Y axis.

3. Loop this so it repeats itself over and over.

If anyone can write the script for this for me I would appreciate it very much.

I don't think anyone will, or should, write this for you, but I'll get you started.

int $random_x
int $random_y
int $random_time
While 1; loop
    $random_x = random(.....
    $random_y = random(.....
    $random_time = random(...
    mouseclick(...
    
    $random_x = random(.....
    $random_y = random(.....
    $random_time = random(...
    mousclick(...
Wend

I didn't fill in the functions for you, or test any of the code, but this should give you a good starting point.

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