Jump to content

CUI simulation when compiled as GUI


Recommended Posts

This is pretty cool script.

I think that I found a solution for the Send Enter problem.

Local $ret = DllCall("kernel32", "ptr", "GetConsoleWindow")
    If Not @error Then
        DllCall("user32", "bool", "PostMessage", _
                "hwnd", $ret[0], _
                "uint", 256, _  ; WM_KEYDOWN
                "wparam", 13, _ ; VK_RETURN
                "lparam", 0)
    EndIf
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...