如题
------解决方案--------------------
send(handle(w_1),1025,0,0)
------解决方案--------------------
1. 建立 External Function
FUNCTION long FindWindowA( ulong Winhandle, string WinTitle ) Library "user32"
2. 取得 pb1.exe 的 handle, handle > 0 表示 pb1.exe 正在執行中
long ll_hdl
ll_hdl = FindWindowA(0, "Application One")
3. 呼叫 pb1.exe 中 w_frame_1 的 ue_1 event, Send() 的第二個參數, 是跟 Event ID 相互搭配的, 其中 pbm_custom01 對應 1024, pbm_custom02 對應 1025, 依此類推直到 pbm_custom75 對應 1098.
IF ll_hdl > 0 THEN // 判斷 pb1.exe 是否正在執行
Send(ll_hdl, 1025, 0, 0) // 呼叫 pb1.exe 的 w_frame_1 的 ue_1 event (pbm_custom03)
END IF
4. 呼叫時可使用 Send() 以 trigger 的方式處理, 或 Post() 以 post 的方式處理.