Manipulating Main Window

Posted by Slick2175 on Sun 16 Nov 2014 08:01 PM — 3 posts, 16,697 views.

USA #0
So Im confused here with manipulating the main window in
which you play your mud in.


Ok from my understanding this should be the size of the grey area that your Game Window Sits on

table.foreach (GetMainWindowPosition (), print)

and this should also be the grey area that your game sits on.

print (GetInfo(261), "World Window non-Client Height")
print (GetInfo(262), "World Window non-Client Width")

But I get two different numbers


-- table.foreach (GetMainWindowPosition (), print)
Main Window
top 132
height 525
left 132
width 1025



-- print (GetInfo(261), "World Window non-Client Height")
-- print (GetInfo(262), "World Window non-Client Width")
581 Client Height
1370 Client Width


What I want to do is I want to cut the main window in half, and move it to the bottom middle. So I can place another window above it. But I dont even know what numbers are the right numbers to be capturing.

As far as the game window we have all of these positions we can call down, and im not exactly sure what each one really represents. So I was hoping someone could clarify what each one represents. Im wanting to make sure the windows looks right regardless of the resolution you run.


-- print (GetInfo(235), "Window Number")
-- print (GetInfo(261), "World Window non Client Height")
-- print (GetInfo(262), "World Window non Client Width")
-- print (GetInfo(263), "World Window Client Height")
-- print (GetInfo(264), "World Window Client Width")
-- print (GetInfo(250), "Main frame window width")
-- print (GetInfo(249), "Main frame window height")
-- print (GetInfo(280),"Output Window Client Height")
-- print (GetInfo(281),"Output Window Client Width")
-- table.foreach (GetWorldWindowPosition(), print)
-- table.foreach (GetMainWindowPosition(), print)
Amended on Sun 16 Nov 2014 08:06 PM by Slick2175
Australia Forum Administrator #1
To change where the text appears:

http://www.gammon.com.au/scripts/doc.php?function=TextRectangle

I think you probably want "World* Window Client Height/Width".

* Or maybe "Output".

The "client" is the part excepting the title bar, scroll bars etc.

"Non-client" includes title, scrollbars.

The "world window" is the window for this world (as opposed to some other world / notepad window).

"Frame" is the entire client (into which all the windows fit).

"Output window" is where the output goes (as opposed to where you type).
USA #2
Awesome Thank you, and thanks for the tip with TextRectangle