PaLmaTeX Posted May 8, 2008 Share Posted May 8, 2008 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 More sharing options...
MikeP Posted May 8, 2008 Share Posted May 8, 2008 (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 May 8, 2008 by MikeP Link to comment Share on other sites More sharing options...
PaLmaTeX Posted May 8, 2008 Author Share Posted May 8, 2008 (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 May 8, 2008 by PaLmaTeX Link to comment Share on other sites More sharing options...
guinness2010 Posted September 13, 2010 Share Posted September 13, 2010 kool Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now