quote:
Originally posted by mathieumg
I read somewhere in the doc that if you recreate the same window (with the same id, etc.) and it is already opened, it will just put the focus on it. I can't find where in the doc I saw that though...
to do that you need to do something like
code:
focusWindow(wnd.Handle);
function focusWindow(hwnd){
Interop.Call('User32','BringWindowToTop',hwnd);
Interop.Call('User32','ShowWindow',hwnd , 1);
}