Jump to content

Need help with Mouse / Autofire problem


Recommended Posts

Im wanting to try AutoIt out after doing alot of Autohotkey playing because it seems abit slicker. Ive written several rapid fire (rapid mouse click) macros in autohotkey, but am having problems in autoit!

In autohotkey I can have the primary mouse button activate/deactivate a loop that pushes the left mouse button down & up. Works perfectly.

In AutoIt, When you have a button the same as the one used in a looping macro, it just keeps looping because it's looking for any button event and not what the user's input is. It simply sees that the input is cycling & not what the user himself is doing.

Ive searched and have not found an answer on this forum about it other than "its not possible". Which... Is highly annoying as not only is it possible in Autohotkey, it works correctly by default. :\

Link to comment
Share on other sites

But he runs into a problem when the function sends a mouseclick. Kind of like a hotkey loop. You set a hotkey, and the function it triggers sends that key. To avoid this, you have to unset the hotkey at the start of the funcion and then reset it at the end. Unfortunately, that doesn't help him very much, he just needs a way to distinguish between an autoit mouseclick and when you actually click the mouse.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Link to comment
Share on other sites

on one case or another, if 'hotkey' func did not help 'if' '_ispressed' 'then' 'do' 'untill' 'not' '_ispressed' probably will work

#Include <Misc.au3>
$x = 0 
While 1
    If _IsPressed("01") Then
        Do
            ToolTip($x)
            $x += 1
        Until not _IsPressed("01")
    EndIf
WEnd
Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
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...