Sign in to follow this  
Followers 0
bjbrechas

Help with mouse & keyboard bucle

3 posts in this topic

#1 ·  Posted (edited)

Hello i wanted to make a QS script with autoit, i made it before but lost all my HDD on last format.

Im so bad at C++, maybe LUA can do something but im feeling really lost. Repeat Untilfalse; really miss lua code T.T xd

Im trying to call keyboard "q" strokes each i hit left click.

For each left click making 2 "q" strokes, a loop function & a keybind to stop script.

Can anyone help me?

Edit: i did the script in 100 diferent ways but i cant find how to call keyboard when i click left mouse button on loop...

Edited by bjbrechas

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#include <Misc.au3>

Global $hDll = DLLOpen("user32.dll")

While (True)
    If (_IsPressed("01", $hDll)) Then
        Send("{q}")
    EndIf
WEnd

Didn't look at the help file to confirm, pretty sure 01 is the left mouse button, double check it though.

Edited by InunoTaishou
1 person likes this

Share this post


Link to post
Share on other sites

thank you

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