Sign in to follow this  
Followers 0
Vindicator

guided clicks

5 posts in this topic

Ok, Basically, I have the script Obdelnik by another member (dearly sorry, forgot name) and I wanted to make a script click at spots within that rectangle, and if the rectangle moves, the co-ordinates move too.. and as you can guess, Im doing this for a game...

Sorry, the above was a bit confusing, what commands should I be looking at to make a script that clicks at certain co ordinates within a rectangle moveable by the user?

I dont exactly know how to explain it, but this game is 800x600, and it has a bunch of buttons you click in sequencial order, so I wish to take a 800x600 dll rectangle, and using the position that the rectangle is in, it clicks certain places within that rectangle...

Sorry if its still unclear what Im asking..


If I hadn't said thank you yet, and you deserve it, than thank you...

Share this post


Link to post
Share on other sites



Ok, Basically, I have the script Obdelnik by another member (dearly sorry, forgot name) and I wanted to make a script click at spots within that rectangle, and if the rectangle moves, the co-ordinates move too.. and as you can guess, Im doing this for a game...

Sorry, the above was a bit confusing, what commands should I be looking at to make a script that clicks at certain co ordinates within a rectangle moveable by the user?

I dont exactly know how to explain it, but this game is 800x600, and it has a bunch of buttons you click in sequencial order, so I wish to take a 800x600 dll rectangle, and using the position that the rectangle is in, it clicks certain places within that rectangle...

Sorry if its still unclear what Im asking..

Just make the coordinates relative to the box, and add them to the left/top coordinate of the box:

$Box_X = 100
$Box_Y = 200
MouseClick("Left", $Box_X + 25, $Box_Y + 50)

This code will always click at coordinates of 25/50 within the box. If you change the values of $Box_X and/or $Box_Y, the math expressions in the MouseClick() command will still click at 25/50 within the box.

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Opt("MouseCoordMode",0)

;)

Share this post


Link to post
Share on other sites

Opt("MouseCoordMode",0)

;)

...only if the "rectangle" from the original post is a window.

:lmao:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

...only if the "rectangle" from the original post is a window.

;)

Oh, well thats how i infered it...

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