Hi everyone,
Let's say I have:
F5::SendInput M
and also:
Enter::
---some code---
SendInput {F5} ;it should send M
---some code---
return
function() could help but maybe there is a much better solution here
Can I send a key like that? Topic is solved
Re: Can I send a key like that? Topic is solved
You could use #Inputlevel:
Or gosub, as F5 is also a kind of label:
Code: Select all
F5::SendInput M
#Inputlevel 1
F1::
; ...
SendInput {F5}
return
Code: Select all
F5::SendInput M
F1::
Send w
gosub F5
Return
Re: Can I send a key like that?
Wonderful! Thanks a lotgregster wrote: ↑27 May 2023, 12:01You could use #Inputlevel:Or gosub, as F5 is also a kind of label:Code: Select all
F5::SendInput M #Inputlevel 1 F1:: ; ... SendInput {F5} return
Code: Select all
F5::SendInput M F1:: Send w gosub F5 Return