Places a child window.
WinPlaceChild (x-ulc, y-ulc, x-brc, y-brc, partial-parent-winname, partial-child-winname)
(i) x-ulc how far from the left of the screen to place the upper-left corner (0-1000).
(i) y-ulc how far from the top of the screen to place the upper-left corner (0-1000).
(i) x-brc how far from the left of the screen to place the bottom-right corner (10-1000) or @NORESIZE.
(i) y-brc how far from the top of the screen to place the bottom-right corner (10-1000) or @NORESIZE.
(s) partial-parent-winname specifies the parent of the window to place.
(s) partial-child-winname specifies the child window to be placed.
(i) @TRUE if a window was found to move.
This function is like WinPlace, but places a child window. The coordinates are specified as virtual coordinates within the client area of the parent window, where the parent window is 1000 x 1000.
Use this function to move child windows on the screen. (You cannot, however, move icons or windows that have been maximized to full screen).
The "x-ulc", "y-ulc", "x-brc", and "y-brc" parameters are based on a logical screen that is 1000 points wide by 1000 points high.
You can move the window without changing the width and/or height by specifying @NORESIZE for the "x-brc" and/or "y-brc" parameters, respectively.
Some sample parameters:
Upper left quarter of the screen: 0, 0, 500, 500
Upper right quarter: 500, 0, 1000, 500
Center quarter: 250, 250, 750, 750
Lower left eighth: 0, 750, 500, 1000
All coordinates are relative to a virtual 1000x1000 screen.
This function works only with top-level (parent) application windows.
Note: 1000x1000 virtual screen size is based on the primary monitor in a multi-monitor display configuration
Run(StrCat(DirHome(),"winbatch studio.exe"),"") list = WinItemChild("WinBatch Studio") choice = AskItemlist("Choose the child window to activate", list, @TAB, @UNSORTED,@SINGLE) If WinExistchild("WinBatch Studio",choice) WinActivechild("WinBatch Studio",choice) WinPlaceChild(0, 0, 200, 200, "WinBatch Studio", choice) EndIf
WinArrange, WinHide, WinIconize, WinPlace, WinPlaceSet, WinPosition, WinShow, WinZoom, Partial Window Names, IntControl 46