#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseX64=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include #include 'LogMe.au3' #include #include Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocas Global $x = 0, $y = 0 ;verify window exists $hWnd = WinGetHandle("Pulsz on DESKTOP-JF28N0N - Virtual Machine Connection") StopHere($hwnd & ' ' & 'Was the Handle found?') ;$hwnd 0x0000000000020748 was returned ;activate window $success = WinActivate($hwnd) StopHere($success & ' ' & 'was the window activated?') ;yes it activated the proper window ;Wait for window to be activated $success = WinWaitActive("[Active]") StopHere($success & ' ' & 'wait finished') ;$success - $hwnd ;verify the window moved $success = WinMove($hwnd, '', 10, 10, 1440, 900) StopHere($success & ' ' & 'Did the window move?') ;NO THE WINDOW DID NOT MOVE WinSetState($hWnd, "", @SW_MAXIMIZE) StopHere($success & ' ' & 'was the window maximized?') ;NO THE WINDOW DID NOT MAXIMIZE func StopHere($success) $success = msgBox($MB_SYSTEMMODAL, "stop here.",$success) EndFunc