Jump to content

_WinAPI_PostMessage


Recommended Posts

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
Link to comment
Share on other sites

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)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...