script change button

Ask gaming related questions (AHK v1.1 and older)
wolfwolf
Posts: 3
Joined: 25 Jun 2018, 08:57

script change button

25 Jun 2018, 14:41

i want script that :
when i press a one time b = c when i press a again b= d when i press a again b = u when i press a again b = c ... (it start from the begging )
Rohwedder
Posts: 7628
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: script change button

26 Jun 2018, 03:44

Hallo,
try:

Code: Select all

*a::a:=Mod(0 a+1,3)
#If a = 0
    b::c
#If a = 1
    b::d
#If a = 2
    b::u
#If
b = b if a never pressed.
wolfwolf
Posts: 3
Joined: 25 Jun 2018, 08:57

Re: script change button

26 Jun 2018, 13:30

Rohwedder wrote:Hallo,
try:

Code: Select all

*a::a:=Mod(0 a+1,3)
#If a = 0
    b::c
#If a = 1
    b::d
#If a = 2
    b::u
#If
b = b if a never pressed.
thank you very much this is very helpful but what if i want b=c if a never pressed ?
Rohwedder
Posts: 7628
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: script change button

27 Jun 2018, 00:43

Hallo,

Code: Select all

a = 0
Return
*a::a:=Mod(0 a+1,3)
#If a = 0
    b::c
#If a = 1
    b::d
#If a = 2
    b::u
#If
really so hard?

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 76 guests