Jump to content
Sign in to follow this  
ipg

postmessage

Recommended Posts

ipg

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

Share this post


Link to post
Share on other sites
weaponx

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.

Share this post


Link to post
Share on other sites
ProgAndy

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

Share this post


Link to post
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
Sign in to follow this  

×