; 主要程序
DetectHiddenWindows, on
Gui, show, w100 h100, main_run
OnMessage(0x5000, "接收回馈")
global i_reallyget
Loop, 5
{
i_nownum := A_Index
Run, % A_ScriptDir "\接收.ahk", , ,the_pid
i_reallyget := ""
while (!(i_nownum == i_reallyget))
postmsg("ahk_pid " the_pid, 0x5000,i_nownum)
}
return
接收回馈(msg*) {
global i_reallyget
i_reallyget := msg[1]
}
postmsg(s_totitle, i_msg, i_wparam := "", i_lparam := "", s_control := "") {
PostMessage, % i_msg, % i_wparam, % i_lparam, % s_control, % s_totitle
}
#SingleInstance Off
#include dbg.ahk
OnMessage(0x5000, "receive_msg")
gui, +hwnd@mainid
Gui, show, w100 h100, sub_run
global mynum := false ;此窗口编号
whilenot(mynum)
msgbox,