TTQ 0 Posted June 1, 2010 I try send ctrl+z to window minimize but it not work help me please !!!! #include <WinAPI.au3> #include <VirtualKey.au3> $TITLE = WinGetTitle("[CLASS:LineKongGame]") $hWnd = WinGetHandle($TITLE) While 1 _WinAPI_PostMessage($hWnd, 0x100, 0x11,0) _WinAPI_PostMessage($hWnd, 0x100, 0x5A,0) sleep(500) WEnd Share this post Link to post Share on other sites
Ascend4nt 131 Posted June 1, 2010 If WinSetState() doesn't work, and Send/ControlSend don't work for you, this will send the default Windows minimize command: ; SYS_COMMAND=0x112, SC_MINIMIZE = 0xF020 _WinAPI_PostMessage($hWnd,0x112,0xF020,0) My contributions:Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash RecoveryWrappers/Modifications of others' contributions:_DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity)UDF's added support/programming to:_ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne)(All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Share this post Link to post Share on other sites
TTQ 0 Posted June 2, 2010 thanks Ascend4nt but I want to know send key Ctrl + z when window minimize I only know send aa or abc but how to keep Ctrl then press z Share this post Link to post Share on other sites