Hello I am web developer but I know very little about arduino coding, how can I press ctrl + m and ctrl + n after me when i press ctrl + s?
In some IDE, you mean?
aarg:
In some IDE, you mean?
yes
Which IDE, then?
aarg:
Which IDE, then?
what does it matter?
let's say atom ide, i know there is already macro in atom editor but i want to learn coding with arduino leonardo. so i think best way to make simple macro.
dcyilmaz:
what does it matter?
let's say atom ide, i know there is already macro in atom editor but i want to learn coding with arduino leonardo. so i think best way to make simple macro.
Why so evasive? Don't you think that macros are implemented and configured differently in different IDE's?
let's say atom ide, i know there is already macro in atom editor but i want to learn coding with arduino leonardo. so i think best way to make simple macro.
Reading between the lines that you have not posted, you want to use a Leonardo to control an application on the PC by sending keystrokes
Is that correct ?
aarg:
Why so evasive? Don't you think that macros are implemented and configured differently in different IDE's?
because you ask questions that have nothing to do with. what does this have to do with the IDE? what does it matter? My question is very simple, I want it to press 2 keys after saving the codes with ctrl + s.
IDE IS NO IMPORTANT HERE. Because it will check that I pressed "ctrl + s" and then press the key with Keyboard.write.
If you do not know the solution, do not answer with si..ly questions. thanks.
dcyilmaz:
what does this have to do with the IDE? what does it matter?
Because in response to the question "In some IDE, you mean?" you responded "yes".
The Arduino Leonardo doesn't receive the keys you press in any other keyboard so it can't sense that you have pressed Ctrl-S and then press Ctrl-M and Ctrl-N for you. One option that WILL work is a button on your Arduino Leonardo that will send Ctrl-S, Ctrl-M, and Ctrl-N (with whatever delays between that might be necessary). Would that be sufficient?