Moves a control within a window.
ControlMove ( "title", "text", controlID, x, y [, width [, height]] )
If x and y equal to the Default keyword no move occurs, just resizing.
#include "Extras\HelpFileInternals.au3"
Example()
Func Example()
; Run Notepad
Run ("notepad.exe")
; Wait 10 seconds for the Notepad window to appear.
Local $hWnd= WinWait ("[CLASS:Notepad]","",10)
; Wait for 2 seconds.
Sleep (2000)
; Move the edit control of Notepad using the handle returned by WinWait.
ControlMove ($hWnd,"",ControlGetFocus ($hWnd),0,0,150,150)
; Wait for 2 seconds.
Sleep (2000)
; Close the Notepad window using the handle returned by WinWait.
WinClose ($hWnd)
EndFunc ;==>Example