sdwd_lhq 发表于 2014-9-7 10:51:42

关于那个coproc.au3进行多进程,如何向子进程传函数参数?


#include "coproc.au3"
While 1
        $iPidChild = _CoProc(Default, "tishi") ; Create new Procces,
        ;MsgBox(0,"",$iPidChild)
        Sleep(2000) ; Give some time to load new Process
        _CoProcSend($iPidChild, "Something...") ; Send a Message to new process
WEnd
Func tishi($s)
        MsgBox(0, "Recieved", $s)
EndFunc   ;==>tishi
怎么子进程的这句没反应,MsgBox(0, "Recieved", $s)
页: [1]
查看完整版本: 关于那个coproc.au3进行多进程,如何向子进程传函数参数?