01-31-2026, 10:30 PM
Thank you very much, it works, but I am not sure I am using it the best way.
As a first thing, I just created the function and put your code inside, but this way it does nothing: if I keep "A" pressed, it just starts repeating "a" the normal way how it is supposed to work in Windows.
Then I set the function as triggered by the key "A"; to avoid it to interfere with other programs or macros, I had to untick the "Eat" square. This way it works: simply hitting the key "A" types "a", keeping it pressed executes what I put at the end of the fuction. In my case I have made it show a menu of foreign letters.
But this means that I need to make different copies of the function for each key I want to work this way. Is this the way how it is supposed to work?
What makes me unsure is the fact that the code of the function seems designed to work for many keys with just one copy of the function, because the code has
case ['A','E','I','O','U']
which at the end is recalled by
,case 'A'
,if(upper) key "Ą"; else key "ą"
,
,case 'E'
,;...
But in this case I cannot understand how the function is supposed to be triggered, because, as I said, if I don’t set a trigger for the function, it seems to me that it doesn’t do anything.
Sorry about my zero experience at coding and understanding code: I am not a programmer, I just try to do my best. Thank you for your patience.
As a first thing, I just created the function and put your code inside, but this way it does nothing: if I keep "A" pressed, it just starts repeating "a" the normal way how it is supposed to work in Windows.
Then I set the function as triggered by the key "A"; to avoid it to interfere with other programs or macros, I had to untick the "Eat" square. This way it works: simply hitting the key "A" types "a", keeping it pressed executes what I put at the end of the fuction. In my case I have made it show a menu of foreign letters.
But this means that I need to make different copies of the function for each key I want to work this way. Is this the way how it is supposed to work?
What makes me unsure is the fact that the code of the function seems designed to work for many keys with just one copy of the function, because the code has
case ['A','E','I','O','U']
which at the end is recalled by
,case 'A'
,if(upper) key "Ą"; else key "ą"
,
,case 'E'
,;...
But in this case I cannot understand how the function is supposed to be triggered, because, as I said, if I don’t set a trigger for the function, it seems to me that it doesn’t do anything.
Sorry about my zero experience at coding and understanding code: I am not a programmer, I just try to do my best. Thank you for your patience.
