[已解决]CoProc的CoProcSend参数发送不全的问题
本帖最后由 zhaicheng 于 2011-5-18 22:15 编辑CoProc用的是 http://www.autoitx.com/forum.php?mod=viewthread&tid=2900&page=1&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 12. _CoProcSend($gi_CoProcParent, StringToBinary("哈哈!成功ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"))
18. ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $vParameter = ' & BinaryToString($vParameter) & @crlf & '>Error code: ' & @error & @crlf)
lz试试看解决没? 12. _CoProcSend($gi_CoProcParent, StringToBinary("哈哈!成功dddddddddddddddddddddddddddddddddddddddd ...
蜘蛛抱蛋 发表于 2011-5-14 10:03 http://www.autoitx.com/images/common/back.gif
谢谢 蜘蛛抱蛋!
页:
[1]