本帖最后由 zhaicheng 于 2011-5-18 22:15 编辑
CoProc用的是 http://www.autoitx.com/forum.php ... &extra=page%3D1
reciever的结果是参数被截取了,不完整,求教。#NoTrayIcon
#include "CoProc.au3"
_CoProcReciver("Reciver") ;注册Reciver()函数来接收子进程传递过来的消息
Sleep(1000)
$iPidok = _CoProc("ok")
Sleep(1000)
$iPidbug = _CoProc("bug")
Sleep(1000)
Func ok()
_CoProcSend($gi_CoProcParent, "哈哈!成功ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd")
EndFunc ;==>ok
Func bug()
_CoProcSend($gi_CoProcParent, "完了,失败了!")
EndFunc ;==>bug
Func Reciver($vParameter)
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $vParameter = ' & $vParameter & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
;~ MsgBox(0, 0, "看看能否运行到这里")
;~ MsgBox(0, 0, $vParameter)
EndFunc ;==>Reciver
|