Sign in to follow this  
Followers 0
Toysrme

Need help with Mouse / Autofire problem

6 posts in this topic

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

Share this post


Link to post
Share on other sites



Bump

Share this post


Link to post
Share on other sites

so, to sum up, you want to trigger a function when you click your mouse, and stop it when you click again?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

If so, I guess he could add another HotKey to go into a function, and then use a loop with _IsPressed(), to know when to start the autoclicking, and viceversa.. and then another HotKey to stop him from being on these function?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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.

 

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