Jump to content

postmessage


Recommended Posts

Hello,

in autohotkey i can use a command

clipboard = PostMessage, 0x112, 0x170, 0, , PuTTY ; 0x112 is WM_SYSCOMMAND

to get the text of a dos window. Can i do this in autoit too?

Please help

PI

Link to comment
Share on other sites

Hello,

in autohotkey i can use a command

clipboard = PostMessage, 0x112, 0x170, 0, , PuTTY; 0x112 is WM_SYSCOMMAND

to get the text of a dos window. Can i do this in autoit too?

Please help

PI

We offer SendMessage. See "User Defined Functions > Misc" in the help file.
Link to comment
Share on other sites

PostMessage is very Similar :) You could copy SendMessage and Replace SendMessage with PostMessage

Func _PostMessage($hWnd, $iMsg, $wParam = 0, $lParam = 0, $iReturn = 0, $wParamType = "wparam", $lParamType = "lparam")
    Local $aResult = DllCall("user32.dll", "int", "PostMessage", "hwnd", $hWnd, "int", $iMsg, $wParamType, $wParam, $lParamType, $lParam)
    If @error Then Return SetError(@error, @extended, "")
    If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn]
    Return $aResult
EndFunc   ;==>_PostMessage

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

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...