Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

how to treat one mouse click as 100 clicks?



  • Please log in to reply
5 replies to this topic
ferozfirru
  • Members
  • 2 posts
  • Last active: Apr 01 2014 04:41 PM
  • Joined: 01 Apr 2014

hello friends, i am new to AHK,

 

i searched for this but i've found about the rapid fire, but what i want to know ,is there any possibility in AHK ,so that if i click my left mouse button one time it will consider it as 100 clicks(not onhold)

 

help me regarding this ,thank you in advance



RHCP
  • Members
  • 1228 posts
  • Last active: Apr 08 2017 06:17 PM
  • Joined: 29 May 2006
✓  Best Answer
; ctrl + alt + left click
^!LButton::
sendInput, {click 100}
return

If this doesn't work, you may have to do a loop with a sleep between the sleep commands.



ferozfirru
  • Members
  • 2 posts
  • Last active: Apr 01 2014 04:41 PM
  • Joined: 01 Apr 2014
; ctrl + alt + left click
^!LButton::
sendInput, {click 100}
return

If this doesn't work, you may have to do a loop with a sleep between the sleep commands.

 

Hi friend,this is working fine, but what i want is, is there any possibility that the 100 clicks will be clicked in 1 second.i mean this script is executing the 100 clicks one by one. i want it to consider one click as 100 clicks at a time. 



Sanctus
  • Members
  • 283 posts
  • Last active: Dec 06 2014 04:05 PM
  • Joined: 30 Nov 2012

Impossible if you want it to actually click 100 times each time.


Check out ALL My Scripts  ;)


RHCP
  • Members
  • 1228 posts
  • Last active: Apr 08 2017 06:17 PM
  • Joined: 29 May 2006

The posted code will instantly click the mouse 100 times. If it appears that its sending them one by one, then you have some other low level keyboard hook installed on your system - this could be another running AHK script, or any other program.

 

This will instantly click the mouse 100 times for me, even if I'm running another script which contains a keyboard hook.

f1::
SetMouseDelay, -1
click 100
return 


Sanctus
  • Members
  • 283 posts
  • Last active: Dec 06 2014 04:05 PM
  • Joined: 30 Nov 2012

Pretty cool, except the software receiving the clicks ofc needs to be able to recognize it, which not many will :)


Check out ALL My Scripts  ;)