EmEditor Home - EmEditor Help - EmEditor Macro Reference

Window Object

Properties

Caption Returns the caption text for the window.
Children Returns the Windows collection that represents child windows.
ClassName Returns the class name for the window.
clipboardData Returns the clipboardData Object.
document Returns the Document Object.
DroppedFiles Returns the DroppedFiles Object.
editor Returns the Editor Object.
Enabled Returns whether the window is enabled for mouse and keyboard input.
ExStyle Returns the extended styles of the specified window.
Height Returns or sets the height of the window.
hWnd Retrieves or sets the handle value of the window.
Interface Returns the Interface Object.
LeftX Returns or sets the horizontal position of the specified window, in pixels.
OutputBar Returns the OutputBar Object.
Parent Returns the parent window object.
ProcessID Returns the process identifier.
Redraw Allows changes in EmEditor to be redrawn or prevents changes in EmEditor from being redrawn.
ScriptFullName Retrieves the complete path and file name of the currently running macro file.
ScriptName Retrieves only the file name of the currently running macro file.
Style Returns the styles of the specified window.
scrollX Returns the horizontal position of the scroll bar.
scrollY Returns the vertical position of the scroll bar.
shell Returns the Shell Object.
status Retrieves or sets a string displayed on the status bar.
ThreadID Returns the identifier of the thread that created the window.
Top Returns or sets the vertical position of the specified window, in pixels.
Valid Returns whether the window handle is valid.
Visible Returns whether the window is visible.
Width Returns or sets the width of the window.

Methods

alert Displays a message in a simple dialog box with the OK button.
close Closes the window.
confirm Displays a message in a simple dialog box with the OK button and the Cancel button.
CreatePopupMenu Creates a popup menu.
FindWindow Finds the child Window object by a class name and/or by a window title.
FindWindowByID Finds the child window object by the window identifier.
print Displays the Print dialog box.
prompt Displays a dialog box to enter a string.
Quit Terminates the macro execution.
scrollBy Scrolls the window by the specified relative amount.
scrollTo Scrolls the window to the specified position.
SetFocus Sets the keyboard focus to the window.
SetForeground Brings the window to foreground.
SetPosition Sets the size and position of the window.
Sleep Pauses the macro execution for the specified time in milliseconds.

Version

Supported on EmEditor Professional Version 4.00 or later.

Copyright 2003-2014 by Emurasoft, Inc.