I'm trying to create a C/C++/C# addon for Node.js that flashes the terminal orange in the taskbar on Windows. After a bit of research, I came across this Stackoverflow post. Is there a way to detect the currently running terminal which I can pass to the documented function? Would GetActiveWindow work here?
Asked
Active
Viewed 101 times
0
jmrk
- 26,789
- 6
- 42
- 57
Richie Bendall
- 5,657
- 3
- 32
- 49
-
According to that link, the function is `FlashWindowEx`, which is a generic Windows API function -- it isn't tied to Windows Forms. Any language that can call WinAPI functions can use it. – PaulMcKenzie Jan 03 '20 at 14:23
-
@PaulMcKenzie In that case, the question would be: How do I get the current terminal window in C/C++/C# which I would then pass to `FlashWindowEx`? – Richie Bendall Jan 03 '20 at 14:29