Sign in to follow this  
Followers 0
Noobcube

repeat mouse click and move location

4 posts in this topic

Hi,

I wanna repeat a script, but the first mouse click i wanna make it so everytime it repeats it lowers by x amount, is this possible?

Thanks

Share this post


Link to post
Share on other sites



yes it's very possible..

Put mouseclick in a for loop and everytime subtract $i*$dec from x and y co-ordinates. where $dec is the value u want to lower coordinates with.

like this

for $i=1 to $whatever
    MouseClick(($x-($i*$dec)),($y-($i*$dec)))
Next

[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

yes it's very possible..

Put mouseclick in a for loop and everytime subtract $i*$dec from x and y co-ordinates. where $dec is the value u want to lower coordinates with.

like this

for $i=1 to $whatever
    MouseClick(($x-($i*$dec)),($y-($i*$dec)))
Next

Thanks man, so if i want to say just move the x axis ill do

MouseClick(($x-($i*$dec)),100)

or something similar?

Share this post


Link to post
Share on other sites

In mouseclick you need to specify both x and y co-ordinates. Please read help file.


[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

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