Description of MUSHclient world function: world.WindowShow
||Shows or hides a miniwindow
long WindowShow(BSTR WindowName, BOOL Show);
View list of data type meanings
This shows or hides the designated window.
WindowName - the name of an existing miniwindow.
Show - true to display the window at its designated place, false to hide it.
Creating and showing windows are separate operations. This is because you may want to maintain something like an inventory list, or quest objectives, but not necessarily have space on the screen for them at a particular moment. By creating the window early on, you can draw to it (offscreen), add or remove items, and generally keep it up-to-date as events occur on the game. However when the player actually wants to see the window s/he may hit a hotkey or type an alias, which simply causes the window to be shown (or hidden).
Calling WindowShow forces a window refresh, so the screen will be updated with the new miniwindow (or absence, as the case may be).
If you have changed the miniwindow, you may not want to call WindowShow (in case they currently want it hidden). In this case you can call Redraw () instead, to cause the main output window to be redrawn, without changing the status of any miniwindows.
For more information, see:
Note: Available in version 4.34 onwards.
WindowShow (win, true) -- show window, refresh screen
WindowShow (win, false) -- hide window, refresh screen
eNoSuchWindow - no such miniwindow
eOK - success
View list of return code meanings
|Introduced in version
See also ...
Search for script function
Enter a word or phrase in the box below to narrow the list down to those that match.
The function name, prototype, summary, and description are searched.
Leave blank to show all functions.
Many functions return a "code" which indicates the success or otherwise
of the function.
view a list of the return codes
The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).
view a list of the data types used in function prototypes
View all functions
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.
Gammon Software support
Forum RSS feed ( https://gammon.com.au/rss/forum.xml )