ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started 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?
click %increasex %increasey 17
orrrr? I am almost done and ready for testing :)
I feel so SMRT now!
-
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.
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.
-
is this it????
LOL
Please tell me I am close lol
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
-
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
-
click %increasex %increasey x17
I suggest reading the actual command parameters.
http://wiki.easyuo.com/index.php/Click
-
EN I read that page, I saw multiple clicks but they were fast clicks, I wasent sure if fast would work.
-
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:
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:
SUB MULTICLICK
repeat
SET %i %i + 1
click %increasex %increasey
wait 30
until %i = %amountname
-
Thanks!
-
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 :)