|
Global $DM = _RegDM(@ScriptDir & '\dm.dll')
If IsObj($DM) Then
$ver = $DM.Ver()
ConsoleWrite('> 插件版本:' & $ver & @CRLF)
Else
MsgBox(64, '提示:', '注册大漠插件失败!!!')
Exit
EndIf
$Hwnd = $DM.FindWindow("Chrome_WidgetWin_1","")
$Hwnd = $DM.FindWindowEx($Hwnd,"Chrome_WidgetWin_0","")
$Hwnd = $DM.FindWindowEx($Hwnd,"Chrome_RenderWidgetHostHWND","")
MsgBox(4096, "", "内部句柄是: " & $Hwnd)
Func _RegDM($dll_path)
Local $obj = ObjCreate("dm.dmsoft")
If Not IsObj($obj) Then
RunWait(@ComSpec & ' /c regsvr32 /s ' & FileGetShortName($dll_path), '', @SW_HIDE)
$obj = ObjCreate("dm.dmsoft")
EndIf
Return $obj
EndFunc
谷歌正常状态下打开,AU3可以获取句柄330178,请问为什么最小化后无法获取句柄? |
|