ItsMods
Resize Plugin - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Resize Plugin (/Thread-Resize-Plugin.html)



Resize Plugin - JariZ - 03-07-2012

Basically a plugin that sets the window style to resize
tl;dr it mw3 server console go resize yay

Made it (in 5 minutes) because people were complaining @ http://www.itsmods.com/forum/Thread-hey-Nukem-since-1-270-update-unable-to-re-size-server-console.html

Code:
public class ServerResizer : CPlugin { #region Signatures [DllImport("user32.dll")] static extern int SetWindowLong(IntPtr hWnd, int nIndex, long dwNewLong); #endregion public unsafe override void OnServerLoad() { try { ServerPrint("MW3ServerResize by jariz"); SetWindowLong(*(IntPtr*)0x5933A50, -16, 0x94CF0000L); } catch (Exception z) { ServerPrint("Failed: " + z.ToString()); } } }



RE: FullScreen Plugin - SuperNovaAO - 03-07-2012

Why not just add resizability to the Window but instead force another size maybe nobody wants and use static offsets?


RE: FullScreen Plugin - JariZ - 03-07-2012

ok well, improve it if you've got a problem with it. Troll
also static pointers work fine. i use it for playermanager as well and it works perfectly. If you're going to search for the window you'll have problems when for example other servers are running on the same computer


RE: Resize Plugin - JariZ - 03-07-2012

Okay @SuperNovaAO
Made it resizable instead of fullscreen


RE: Resize Plugin - blueberry9 - 03-07-2012

thanks