Help in a Configuration ;))

Ask gaming related questions (AHK v1.1 and older)
zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Help in a Configuration ;))

Post by zikore » 02 Jul 2021, 12:19

I need a configuration that in logic is as follows:

Every 3 clicks with the left mouse, use the f3 key on the keyboard and everything is repeated.

Thanksssss <3

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Help in a Configuration ;))

Post by mikeyww » 02 Jul 2021, 16:02

Code: Select all

n := 0
~LButton::
KeyWait, LButton
Send % Mod(++n, 3) ? "" : "{F3}"
Return

zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Re: Help in a Configuration ;))

Post by zikore » 02 Jul 2021, 19:16

Perfect!

However, you would also need to alternate the time of this setting every 3 clicks by pressing f3, at least 2 different times would solve it, would it be possible?

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Help in a Configuration ;))

Post by mikeyww » 02 Jul 2021, 19:49

I think that's what it does. If not, you could provide a detailed example of what you described, in case I do not understand it.

zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Re: Help in a Configuration ;))

Post by zikore » 03 Jul 2021, 14:17

True, it really is already in this configuration, so to solve such a situation would need one of this logic:

That every 3 clicks press f3 and then press f3 with 4 clicks, and all that in a loop.

Thanks, mike for help me.

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Help in a Configuration ;))

Post by mikeyww » 03 Jul 2021, 14:55

I'm confused, unfortunately. Perhaps you can provide an example and the specific detail.

zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Re: Help in a Configuration ;))

Post by zikore » 03 Jul 2021, 15:39

This configuration:

Code: Select all

n := 0
~LButton::
KeyWait, LButton
Send % Mod(++n, 3) ? "" : "{F3}"
+

every 4 click with the left mouse the f3 key is pressed and that this is all inside and a loop.

zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Re: Help in a Configuration ;))

Post by zikore » 03 Jul 2021, 16:44

If it is not possible to perform this configuration mentioned, I could include in this configuration a delay of 1.6 seconds before pressing the f3 key, it would solve my need. thanks

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Help in a Configuration ;))

Post by mikeyww » 03 Jul 2021, 21:08

So you want click, click, click, F3, click, F3, and then repeat?

zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Re: Help in a Configuration ;))

Post by zikore » 04 Jul 2021, 12:54

This:
click, click, click, f3
click click click click, f3
return

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Help in a Configuration ;))

Post by mikeyww » 04 Jul 2021, 13:02

Code: Select all

n := 0, m := 3
~LButton::
KeyWait, LButton
Send % Mod(++n, m) ? "" : ("{F3}", m := 7 - m, n := 0)
Return

zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Re: Help in a Configuration ;))

Post by zikore » 04 Jul 2021, 14:21

Is there a way to put a delay of 1297 seconds on the f3 key for me ?

zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Re: Help in a Configuration ;))

Post by zikore » 04 Jul 2021, 14:23

This:
click, click, click,(delay time: 1297) f3
click click click click,(delay time: 1297) f3
return

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Help in a Configuration ;))

Post by mikeyww » 04 Jul 2021, 14:26

Code: Select all

n := 0, m := 3
~LButton::
KeyWait, LButton
If Mod(++n, m)
 Return
Sleep, 1297000
Send % ("{F3}", m := 7 - m, n := 0)
Return

zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Re: Help in a Configuration ;))

Post by zikore » 04 Jul 2021, 14:32

u a god, man ! Thanks

oikos99
Posts: 2
Joined: 04 Jul 2021, 22:07

Re: Help in a Configuration ;))

Post by oikos99 » 04 Jul 2021, 22:35

Hi guys. thanks for this thread. You guys really saved my life here. I have a similar question and I hope you can answer it here. By no means I have the intention to hijack this thread. :D

I am looking for something similar. I'd like for a specific keystroke (say "y") that when it is pressed ONCE within a X second threshold, the program would execute another key say "a". When it is pressed TWICE, the program would execute another key "b". and when it is pressed THREE TIMES, the program would execute another key "c".

Code: Select all

n := 0
y::
KeyWait, y
Send % Mod(++n, 3) ? "" : "{c}"
I tried to modify the current version but since TWICE or THREE TIMES subsume ONCE, I cannot distinguish between them. I am thinking we would need two different thresholds here. The first threshold X is the milliseconds in between the rapid execution of "y". If more time than this threshold has elapsed, another "y" wouldn't be registered as += 1. The second threshold Z acts as a reset so that the entire process would repeat itself after Z amount of time.

Any help is greatly appreciated. Thank you mikeyww for being our savior :thumbup: :thumbup:


oikos99
Posts: 2
Joined: 04 Jul 2021, 22:07

Re: Help in a Configuration ;))

Post by oikos99 » 06 Jul 2021, 00:43

:bravo: :bravo: :bravo: OMG you're a savior!!!!! Thank you mikeyww!!!!! :mrgreen: :mrgreen:

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Help in a Configuration ;))

Post by mikeyww » 06 Jul 2021, 05:55

Personally, I would blame all of this on Rohwedder! :)

zikore
Posts: 10
Joined: 02 Jul 2021, 12:12

Re: Help in a Configuration ;))

Post by zikore » 18 Aug 2022, 21:08

mikey ?

can you help me for a configuration in one game ?

Please !!

Post Reply

Return to “Gaming Help (v1)”