OS = Windows.
Does anyone have any ideas how I can figure out with js-ctypes what profile a firefox window is using?
I discovered that window class is different for each profile. And all windows in one profile uses all same class.
My final goal is to go through a single window of each different window class for firefox and make it run this script: if (profileName == 'blah') { Services.wm.getMostRecentWindow(null).focus() }
Thanks
ps: one idea i had was on startup of profile and on consequent window focuses, update a file with the window class, but i want to avoid using file because: 1) im already using ctypes to get the window class so might as well go all the way.
ps ps: my final goal is to drop ctypes and have a file watcher but that is in progress bugzilla. but anyways once thats done i can just make each profile watch a file and if it turns to "focus most recent win of profile = 'blah'" then boom focus it right away.
Solution was a js-ctypes solution and is here:
ask.m.o :: Have handle to window, how to identify profile (WinAPI)