11-12-2021, 10:03 PM
This one sort of makes me feel like a n00b, but I've been trying to figure it out for the last 15 minutes and searched the forum...but how do I get the name of the current active window? I can't believe I've never needed to know this before now!
What I'm doing is using Notepad++ to edit a .ino file...I also have the .ino file open in Arduino IDE where the setting, "Use external editor" is set.
So when I click "CTRL+U" a QM function first keys CTRL+S to save, then grabs the title of the window and gets the filename. Then the Arduino window that has the title that matches is activated and QM sends "CTRL+U" there to upload the sketch.
Sometimes I'm working with multiple Arduino files, so I need a bit more logic than just using "Notepad++" and "Ardunio" as partial matches.
Thanks,
The Vig
What I'm doing is using Notepad++ to edit a .ino file...I also have the .ino file open in Arduino IDE where the setting, "Use external editor" is set.
So when I click "CTRL+U" a QM function first keys CTRL+S to save, then grabs the title of the window and gets the filename. Then the Arduino window that has the title that matches is activated and QM sends "CTRL+U" there to upload the sketch.
Sometimes I'm working with multiple Arduino files, so I need a bit more logic than just using "Notepad++" and "Ardunio" as partial matches.
Thanks,
The Vig