Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Name of Current Active Window
#1
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


Messages In This Thread
Name of Current Active Window - by TheVig - 11-12-2021, 10:03 PM
RE: Name of Current Active Window - by Kevin - 11-13-2021, 01:29 AM
RE: Name of Current Active Window - by TheVig - 11-18-2021, 08:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)