i don't know how to name it so read discription

Ask gaming related questions
chrisb
Posts: 6
Joined: 23 Oct 2018, 13:42

i don't know how to name it so read discription

05 Nov 2018, 03:56

hi everyone i would like to make a script that does this (simplefied):
F1::
and then the first time i press F1 it sends like 1 and then the second time it sends 2 and so on (switching between 1 and 2)
pls if you know how to do it tell me.
thx
Rohwedder
Posts: 1519
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: i don't know how to name it so read discription

05 Nov 2018, 04:25

Hallo,
try:

Code: Select all

F1::Send,% 1+!F1:=!F1
or:

Code: Select all

F1::
If F1:=!F1
	Send, 1
Else
	Send, 2
Return
chrisb
Posts: 6
Joined: 23 Oct 2018, 13:42

Re

05 Nov 2018, 12:04

Thx Rohwedder

it works perfect thx

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 9 guests