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 151 times
1

jmrk
- 34,271
- 7
- 59
- 74

Richie Bendall
- 7,738
- 4
- 38
- 58
-
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