Sign in to follow this  
Followers 0
PaLmaTeX

Mouseclick

4 posts in this topic

Hi all i have a problem ! I have a script written by autohotkey and i want to convert to autoit script anyone can help me? This is the script:

gActivateScript = 0

~ScrollLock::

KeyWait, ScrollLock

GetKeyState, ScrollLockState, ScrollLock, T

If ScrollLockState = D

{

gActivateScript = 1

}

else

{

gActivateScript = 0

}

return

~LButton::

if gActivateScript = 1

{

Loop {

MouseClick, left,,, 1, 0, D

MouseClick, left,,, 1, 0, U

GetKeyState, LButtonState, LButton, P

If LButtonState = U

break ; break the loop if physical state of mouse btn is up.

}

}

return

This is mean when you press scrolllock you dont need to clicking the left mouse button you need only push it down once. Perfect for FPS games. Sorry for my bad english

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi. This sends a double-clic wherever the mouse pointer is when you hit the scroll lock key :

HotKeySet("{SCROLLLOCK}", "doubleclic")

Func doubleclic()
    $p = MouseGetPos()
    MouseClick('left', $p[0], $p[1], 2)
EndFunc
while 1
    Sleep(100)
WEnd
Edited by MikeP

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi thanks for reply! I need this script: when i press ScrollLock the script is activated and when i push down my left mouse button just clicking, when scrolllock again pushed the script paused. I need for fps games, single fire to full auto fire. (Simulate mouse clicking)

Edited by PaLmaTeX

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0