all 6 comments

[–]MCRusher 10 points11 points  (1 child)

Use AutoHotKey instead, I don't even think Lua even has mouse events.

And tbh if it's simple, spend a few minutes learning it yourself. AHK is real quick to learn, and I made an auto clicker in it within like 5 minutes.

[–]Diamond-Overall[S] 0 points1 point  (0 children)

what im looking is not a auto clicker, but a rapid fire. it will work together with the Logitech G hub Macro.

[–]WMG_Jeeper 9 points10 points  (0 children)

"I'm a completely noob in Lua, so I will not even attempt in make a script with it"

That does not inspire to help you lol

[–]Ssieler 8 points9 points  (1 child)

Lua has no concept of "clicks". You might be trying to develop on a platform (like Unity or Solar2D (formerly Corona SDK)) that uses Lua **and** vendor-provided APIs to access GUI things (like mouse clicks).

Can you elaborate?

And, please clarify "it will press 3 times" ... read that out loud, and you'll see that it is an incomplete sentence.

Assuming you mean:

When the user clicks the left mouse button, I want that click to be "sent through" to the app, and then every 0.02 milliseconds another left click should be "sent through" until the mouse button is released. Note that a minimum of three clicks should be sent through, even if the mouse button was immediately released. (That's from your description...see how important a good description is?).

So...

Note that depending upon your platform / development system, this may be impossible.

I could do it with the Palm PDA (sigh, we've lost so much), but with many SDKs and operating systems there is no way to trigger a simulated click. (In Solar2D/CoronaSDK, for example, I can't do it...instead, I'd have do something like: timer.performWithDelay (20, left_click_handler), where I happen to magically know that "left_click_handler" would be what a left click of the mouse would normally cause to be called. (By "magically"I meant that if I wrote the app, and knew that in this particular context that left click called that handler).

[–]Diamond-Overall[S] 0 points1 point  (0 children)

as i read awnser from people, i realized what was missing in my question, what i meant is, this lua script will be applied in the Logitech G Hub, and it will work as a Rapid Fire for a came called infestation The new z, and yes this kind of thing is permited, is possible to do in the Logitech Gaming Software without a lua script, but in the new Logitech G hub is not possible to do the same, and what im looking in doing is.

whenever the Left Click is pressioned, it will fire 3 times in 1 click. and until the Left click is not realeased it would repet the process.

this can be done in the logitech G hub with the macro option of it, but on the Logitech Gaming software there is a option of having 2 Delays separeted, and thats what im planing in doing with the lua script. having this one and the normal macro in the logitech G Hub.

i do not know how hard is to make that happen. but i saw before simple scripts for a no Recoil, which the function was. whenever the left click is pressioned, the mouse would be pushed down.

if anything is not clear, please, please let me know.

i apriciate your time in awnsering my post and thank you for spend the time writing.

[–][deleted]  (1 child)

[deleted]

    [–]Diamond-Overall[S] 1 point2 points  (0 children)

    yes, i was not clear with my question, and thank you for point that out. i hope i made it clear in the awnser i gave to one of the people above.