Sign in to follow this  
Followers 0
BlueForce

tried this new thing

6 posts in this topic

when i hold down the left mouse button, it doesnt repeatedly click the click mouse button like i want it to. is this impossible or can it be done? here's the code im using:

#include <Misc.au3>

$dll = DllOpen("user32.dll")

HotKeySet("{NUMPAD2}", "_Closing")

Sleep(1000)

While 1
    If _IsPressed("01", $dll) Then
    MouseClick("left")
EndIf
WEnd

DllClose($dll)

Func _Closing()
Exit
EndFunc

thanks for the help

Share this post


Link to post
Share on other sites



all that does is make a msgbox pop up, i want it to repeatedly click the left mouse button if im holding it down. or can't this be achieved because of me holding down the left mouse button it can't send another signal saying press it?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

EDITED : There try that

is this working or not? it should work i tested it with just sending a key and it sent it pretty god damn fast

#include <misc.au3>

While 1
    If _IsPressed('01') Then
        While _IsPressed('01')
            MouseClick("left")
        Wend
    EndIf
Wend
Edited by thatsgreat2345

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

well you didnt need to make those changes, i made the appropriate changes but it still doesnt work like i want it to but im going to keep working at it for now. right now i am getting 2 shots for 1 mouse click which is better than 1 for 1 mouse click but what i want the finished product to be is like an autofire gun.

ok latest changes and or ideas:

but ill try yours to

#include <Misc.au3>
HotKeySet("{NUMPAD2}", "_Closing")
While 1
While _IsPressed("02")
    MouseDown("left")
    Sleep(100)
    MouseUp("left")
WEnd
WEnd
Func _Closing()
Exit
EndFunc

i still have to try yours and i have a few more ideas to try and get this to work. ill see what i can do.

Edited by BlueForce

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