Author Topic: How do I make the mouse click multiple times  (Read 6922 times)

0 Members and 1 Guest are viewing this topic.

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
How do I make the mouse click multiple times
« on: October 11, 2009, 10:45:17 AM »
0
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!
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
Re: How do I make the mouse click multiple times
« Reply #1 on: October 11, 2009, 11:10:45 AM »
0
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.
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
Re: How do I make the mouse click multiple times
« Reply #2 on: October 11, 2009, 11:17:15 AM »
0
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
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline Masscre

  • Gran Master Jester !!
  • Scripthack
  • *
  • Posts: 4615
  • Activity:
    0%
  • Reputation Power: 55
  • Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!
  • Gender: Male
  • Air Guitar Commander !!
  • Respect: +390
  • Referrals: 1
    • View Profile
Re: How do I make the mouse click multiple times
« Reply #3 on: October 11, 2009, 11:31:49 AM »
0
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

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: How do I make the mouse click multiple times
« Reply #4 on: October 11, 2009, 03:14:02 PM »
0
Code: [Select]
click %increasex %increasey  x17
I suggest reading the actual command parameters.
http://wiki.easyuo.com/index.php/Click
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
Re: How do I make the mouse click multiple times
« Reply #5 on: October 11, 2009, 04:55:01 PM »
0
EN I read that page, I saw multiple clicks but they were fast clicks, I wasent sure if fast would work.
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Scrripty

  • Guest
Re: How do I make the mouse click multiple times
« Reply #6 on: October 11, 2009, 07:26:17 PM »
0
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
« Last Edit: October 11, 2009, 07:32:24 PM by Scripty »

Offline CoraginTopic starter

  • Wacko in Pajama's
  • Elite
  • *
  • *
  • Posts: 1641
  • Activity:
    0%
  • Reputation Power: 23
  • Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...Coragin might someday be someone...
  • Gender: Male
  • It Is What It Is.
  • Respect: +117
  • Referrals: 1
    • View Profile
Re: How do I make the mouse click multiple times
« Reply #7 on: October 12, 2009, 07:32:10 AM »
0
Thanks!
Coragin

My Facebook
And now I'm better at doing what ever it is Wolverine does!

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: How do I make the mouse click multiple times
« Reply #8 on: October 12, 2009, 07:53:11 AM »
0
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 :)
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Tags: