Please enable JavaScript to view this site.

A-Shell Reference

Navigation: Subroutines > MIAMEX

MX_FINDWINDOW

Scroll Prev Top Next More

xcall MIAMEX, MX_FINDWINDOW, handle, title {,class}

(Windows) MX_FINDWINDOW (MIAMEX 157) is used to search for a window with the specified window title and/or class and/or handle. If both class and title are blank and handle is non-zero, then it searches for the window by its window handle, returning the title and class. If both class and title are blank and handle is zero, then it returns the handle of the A-Shell window (the current modal dialog, if there is one, else the main A-Shell window).

Parameters

handle  (B,4 or F)  [out]

returns the window handle if the window is found (or zero if not found).

title (String)  [in/out]

can be loaded with the window title (as shown on the title bar) of the window to search for.

class (String)  [in/out]

can be loaded with the window class to search for. If both class and title are both non-blank, it will only locate a window matching both.