Jump to content

tried this new thing


Recommended Posts

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

Link to comment
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?

Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

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