ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Coragin on October 11, 2009, 10:45:17 AM

Title: How do I make the mouse click multiple times
Post by: Coragin on October 11, 2009, 10:45:17 AM
I need the mouse to click multiple times on the same button (to bring the strength of an imbuing up) how do I do that?

Code: [Select]
  click %increasex %increasey 17

orrrr?  I am almost done and ready for testing :)

I feel so SMRT now!
Title: Re: How do I make the mouse click multiple times
Post by: Coragin on October 11, 2009, 11:10:45 AM
Okay here is my code, I figured putting it in a its own sub would be best, but I cant figure out how to get it to count the clicks.

Code: [Select]
set %amountname 12

goSub Multiclick %amountname

Sub Multiclick
start:
for %i 1 %amountname
click %increasex %increasey
(what goes here????)
return

amount name is how many clicks for each  different property, so I will have 5 of them each with different names.  I got as far as I can go cause I cant find any clear scripts that use counting lol.
Title: Re: How do I make the mouse click multiple times
Post by: Coragin on October 11, 2009, 11:17:15 AM
is this it????

LOL

Please tell me I am close lol

Code: [Select]
set %ammountname 12

goSub Multiclick %ammountname

Sub Multiclick
set %i 0
for %i 1 %ammountname
start:
click %increasex %increasey
wait 30
set %i +1
if %i = %amountname
return
goto start
Title: Re: How do I make the mouse click multiple times
Post by: Masscre on October 11, 2009, 11:31:49 AM
Code: [Select]
set %ammountname 12

goSub Multiclick %ammountname

Sub Multiclick
set %i 0
for %i 1 %ammountname
repeat
click %increasex %increasey
wait 30
set %i +1
if %i = %amountname
until %i = 30 ;or what ever number of clicks you want it to make or another variable is meet like imbue is complete.
return
Title: Re: How do I make the mouse click multiple times
Post by: Endless Night on October 11, 2009, 03:14:02 PM
Code: [Select]
click %increasex %increasey  x17
I suggest reading the actual command parameters.
http://wiki.easyuo.com/index.php/Click
Title: Re: How do I make the mouse click multiple times
Post by: Coragin on October 11, 2009, 04:55:01 PM
EN I read that page, I saw multiple clicks but they were fast clicks, I wasent sure if fast would work.
Title: Re: How do I make the mouse click multiple times
Post by: Scrripty on October 11, 2009, 07:26:17 PM
EN I read that page, I saw multiple clicks but they were fast clicks, I wasent sure if fast would work.

Also, you shouldn't need this:

Code: [Select]
SET %i = 0
That is specifically set in the FOR statment... you're basically saying SET %i = 1 to %amountname with the FOR...  so %i is already set, that SET %i is redundant isn't it? :)

Also, if you need it to click a set number of times, why couldn't you do something like this:

Code: [Select]
SUB MULTICLICK
repeat
SET %i %i + 1
click %increasex %increasey
wait 30
until %i = %amountname
Title: Re: How do I make the mouse click multiple times
Post by: Coragin on October 12, 2009, 07:32:10 AM
Thanks!
Title: Re: How do I make the mouse click multiple times
Post by: Endless Night on October 12, 2009, 07:53:11 AM
Code: [Select]
gosub Multiclick  %increasex %increasey 17 30

SUB MULTICLICK  ; Pass X Y Numberclicks Waittime
  For !i 1 %3
      {
      click %1 %2
      wait %4
      }
Return


options options options... Lol :)