(已解决)PostMessage求助
本帖最后由 zhu8988850 于 2011-8-12 20:27 编辑小弟最近在找 PostMessage 方面的资料~~~听说这个参数是可以后台执行操作,哪位大大可以写个脚本俺学习下吗~~~希望可以做个注解~小弟也是小白,刚入手! 本帖最后由 happytc 于 2011-8-12 11:04 编辑
#Include <WinAPI.au3>
Local $NewMsg, $hGui, $sParam, $tStruct
$NewMsg = _WinAPI_RegisterWindowMessage("NewMsg")
$hGui = GUICreate("Test Msg")
GUIRegisterMsg($NewMsg, "My_New_Message")
$sParam = "It's New Msg"
$tStruct = DllStructCreate('wchar[' & String(StringLen($sParam) + 1) & ']')
DllStructSetData($tStruct, 1, $sParam)
_WinAPI_PostMessage($hGui, $NewMsg, DllStructGetPtr($tStruct), DllStructGetSize($tStruct) / 2)
While True
Sleep(10)
WEnd
Func My_New_Message($hWnd, $Msg, $wParam, $lParam)
local $mStruct = DllStructCreate('wchar[' & Number($lParam) & ']', $wParam)
MsgBox(0, 'New Test', DllStructGetData($mStruct, 1))
EndFunc
写外挂吧~嘿嘿··········· 呵~~多谢happytc 大大~~~
呃~SDC7,俺要是会写外挂的话~~~做梦都笑了! 呵~~多谢happytc 大大~~~
呃~SDC7,俺要是会写外挂的话~~~做梦都笑了! 呵~~多谢happytc 大大~~~
呃~SDC7,俺要是会写外挂的话~~~做梦都笑了!
页:
[1]