Page 1 of 1

problem with keys and prefixes

Posted: 30 Jun 2016, 05:02
by gluwak
I have this code :

Code: Select all

o::
send -{backspace}LLL
l::
send -{backspace}|)
when i press O key program activate L key .What i should add or change to program work only with real key pressing( not virtual)?Should i use any prefixes or something else? HELP , PLEASE! if you added example , i would be very pleased :)
P.S. Sorry for my bad english , hope you understood me XD

Re: problem with keys and prefixes

Posted: 30 Jun 2016, 06:37
by lifeweaver
Hi gluwak,

You need to put a return after the hotkey, i.e.:

Code: Select all

o::
  send -{backspace}LLL
retun

l::
  send -{backspace}|)
return

Re: problem with keys and prefixes

Posted: 30 Jun 2016, 06:39
by martin joe
i think you should use

Code: Select all

return

Re: problem with keys and prefixes

Posted: 01 Jul 2016, 01:42
by gluwak
Guys it works!!! BUT!!!!!!!!!!!!!!!! it doesn't work if i use this code

Code: Select all

x::
	send -{backspace}'-|
return
'::
	send -{backspace}€
return
so if i press X this program sends me -|€ but i need to promram send me '-|

Re: problem with keys and prefixes

Posted: 01 Jul 2016, 03:09
by neomulemi6
Add ~ before the `::, like this:

Code: Select all

x::
send -{backspace}'-|
return
~'::
send -{backspace}€
return

Re: problem with keys and prefixes

Posted: 01 Jul 2016, 06:03
by lexikos
If you add ~, the hotkey will no longer block ', so pressing ' will produce '€ instead of .

If you just want to prevent Send from triggering the hotkey, use the $ prefix.