hwnd = dm.GetMousePointWindow()
TracePrint hwnd
Delay 1000
TracePrint "绑定开始"
dm_ret = dm.BindWindow(hwnd, "dx", "dx", "dx", 0) //只要运行到这里就卡死
//dm_ret = dm.BindWindow(hwnd,"dx2","dx","dx",11)//只要运行到这里就卡死
//dm_ret = dm.BindWindowEx(hwnd,"dx2","windows","windows","",0)//只要运行到这里就卡死
Delay 5000
TracePrint "绑定结束"
TracePrint dm_ret
Sub OnScriptExit()
dm.UnBindWindow
set dm = nothing
End Sub
// 线程结束时调用
Sub OnThreadExit()
dm.UnBindWindow
set dm = nothing
End Sub