直接上代码吧,其实这个没必要写的,只是做下快捷发帖的测试。
import win.ui; /*DSG{{*/ var winform = win.form(text="aardio form";right=759;bottom=469) winform.add() /*}}*/ import winex; import process; process.executeInvoke("C:\Users\xxxxxx\Desktop\aardio工程6\Debug\Camera.exe"); var hwnd = winex.waitVisible("Form") win.setParent(hwnd,winform.hwnd) win.setPos(hwnd,0,0) win.modifyStyle(winform.hwnd,,0x2000000/*_WS_CLIPCHILDREN*/) winform.show(0x3/*_SW_MAXIMIZE*/) winform.show() win.loopMessage();