Noobcube Posted November 3, 2009 Share Posted November 3, 2009 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 Link to comment Share on other sites More sharing options...
Manjish Posted November 3, 2009 Share Posted November 3, 2009 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 Link to comment Share on other sites More sharing options...
Noobcube Posted November 3, 2009 Author Share Posted November 3, 2009 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? Link to comment Share on other sites More sharing options...
Manjish Posted November 3, 2009 Share Posted November 3, 2009 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 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