Jump to content

Mouseclick


Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 2 years later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...