Felu told me to change it to true, and it works. But I'll use 0, it seems more... correct
But isnt there a way to get the current window handle, send message, then bring the original to the front?
code:
var CurWindow = Interop.Allocate(32);
Interop.Call('User32', 'GetTopWindow', CurWindow);
// Send Message
Interop.Call("User32", "BringWindowToTop", CurWindow);
And
code:
//var CurWindow = Interop.Allocate(32);
var CurWindow;
Interop.Call('User32', 'GetTopWindow', CurWindow);
//Debug.Trace(CurWindow);
//Debug.Trace(CurWindow.Handle);
Contact.SendMessage("/np");
Interop.Call('User32','ShowWindow', CurWindow, SW_SHOW);
Not sure if I'm ment to read this differently, or define CurWindow differently...
SW_SHOW is definded aswell. (its 5)
code:
var CurWindow = Interop.Allocate((255 *2) +2);
Interop.Call('User32', 'GetTopWindow', CurWindow);
ChatWnd.SendMessage("/np");
Interop.Call('User32','ShowWindow', CurWindow.ReadString(0), SW_SHOW);
Shouldnt this one work?