Hi,
I am trying to make a Spanish Numpad for the special characters. All of the lowercase letters work fine but I want to make the Enter Key act as a shift key so when I press Enter and NUM9, it outputs a capital á. The code below, I thought would work, doesn't.
Button 13 is Enter and Button 101 is NUM9 which earlier in the code presses á. How could I get this concept to work?
elseif (button == 13 and button == 101) then lmc_send_keys ("%({NUM0}{NUM1}{NUM9}{NUM3})")
Thanks,
Brady
Pressing Two Buttons to execute one function
-
- Posts: 13
- Joined: 03 May 2019, 01:17
Re: Pressing Two Buttons to execute one function
One variable can't have 2 values - as you test in your condition.
You would need some flag to set on enter down and test it later
You would need some flag to set on enter down and test it later
Petr Medek
LUAmacros author
LUAmacros author