need a simple script
Posted: 23 Jul 2021, 01:31
hi i am new here, can anyone help me on how to hold control key, mouse right click and Q key at the same time? also using f12 key to start and stop the said key. thanks in advance.
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=92958
Code: Select all
F12 Up::Send, {LCtrl Down}{RButton Down}{q Down}
^F12 Up::Send, {LCtrl Up}{RButton Up}{q Up}
Thank you for the help it works perfectly, I would like to ask one more thing. What if I am going to separate the q key and would like it to be pressed every 1 sec?Rohwedder wrote: ↑23 Jul 2021, 03:56Hallo,
try:Code: Select all
F12 Up::Send, {LCtrl Down}{RButton Down}{q Down} ^F12 Up::Send, {LCtrl Up}{RButton Up}{q Up}
Code: Select all
F12 Up::
Send, {LCtrl Down}{RButton Down}{q}
SetTimer, Tq, 1000
Return
^F12 Up::
SetTimer, Tq, Off
Send, {LCtrl Up}{RButton Up}
Return
Tq:
Send, {Blind}{q}
Return
tried it but the q is not working but control right click working fineRohwedder wrote: ↑23 Jul 2021, 09:05Then,
try:Code: Select all
F12 Up:: Send, {LCtrl Down}{RButton Down}{q} SetTimer, Tq, 1000 Return ^F12 Up:: SetTimer, Tq, Off Send, {LCtrl Up}{RButton Up} Return Tq: Send, {Blind}{q} Return
Code: Select all
Tq:
Send, {LCtrl Up}{q}{LCtrl Down}
Return
it seems like i can't get it to work, it still only works on control right clickRohwedder wrote: ↑23 Jul 2021, 11:31Maybe you need this Timer?It sends the Q key without pressed control modifier.Code: Select all
Tq: Send, {LCtrl Up}{q}{LCtrl Down} Return