felipEx
Scripting Contest Winner
Posts: 378 Reputation: 24
35 / /
Joined: Jun 2006
|
RE: RE: Set window size
quote: Originally posted by Neon_
All I'm trying to do is make a simple command that will resize my chat window to a specific size. Anyone think they can help me finish it? I'm kind of lost at the errors I'm getting. This is what I have so far:
code: function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
if (Message=="/sfix"){
SetWindowPos(ChatWnd.Handle, HWND_TOP, 0, 0, 700, 500, SWP_NOMOVE | SWP_NOZORDER);
return"";
}
}
it works fine here
code: function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
if (Message=="/sfix"){
Interop.Call("user32", "SetWindowPos", ChatWnd.Handle, 0, 0, 0, 700, 500, 2);
//SetWindowPos(ChatWnd.Handle, HWND_TOP, 0, 0, 700, 500, SWP_NOMOVE | SWP_NOZORDER);
return"";
}
}
|
|