For an example lets say I have opened 2 Firefox windows (not tabs) 1st shall be google.com and other one is yahoo.com. if currently google is on foreground and i want to bring yahoo window to front using a command from a external program or a command line script how can I do it?
Asked
Active
Viewed 72 times
1
-
Which scripting language do you prefer? – Jens Munk Sep 10 '15 at 21:22
-
this solution is for windows only, which i think is what you want: command line i dont know. but via the windows c api yes you can do this. You have to use winapi threading trick on `SetForgroundWindow`: http://stackoverflow.com/questions/32031856/bring-firefox-window-to-the-front-using-firefox-addon?lq=1 to find the firefox window `hwnd`s you'll have to enumerate windows and test window class name if you need help with that let me know. – Noitidart Sep 11 '15 at 02:05