Page 1 of 1

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

Posted: 05 Nov 2018, 03:56
by chrisb
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

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

Posted: 05 Nov 2018, 04:25
by Rohwedder
Hallo,
try:

Code: Select all

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

Code: Select all

F1::
If F1:=!F1
	Send, 1
Else
	Send, 2
Return

Re

Posted: 05 Nov 2018, 12:04
by chrisb
Thx Rohwedder

it works perfect thx