最佳答案:hwnd = dm.FindWindow("类名","标题") //"类名","标题" 其中一个可空 TracePrint hwnd dm_ret = dm.BindWindow(hw