VB how to obtain a software of Internet Explorer_Server handle
Time:10-11
I've tried using FindWindowEx access but not, like Enumchilewindows and Getwindowsclass can find out his handle Master can help give me a good example!
CodePudding user response:
This is what to do with?
CodePudding user response:
Do this thing in the right way, you suggest that you know about the BHO technology, you can baidu "vb BHO."
CodePudding user response:
The use FindWindowEx should be able to, all with FindWindowEx (HWND, HWND1 VBNULLSTRING, VBNULLSTRING) Sometimes you specify CLASS also not line, but all with NULL line, then you get all the HWND, get the CLASS, the comparison
CodePudding user response:
I just use this approach to
'┏ 〓 〓 〓 〓 〓 〓 〓 〓 〓 FindHwndByClassAndId, start 〓 〓 〓 〓 〓 〓 〓 〓 〓 ┓ '[abstract] : 'search form multi-level down the handle to a few of the same class The Function FindHwndByClassAndId (WinHwnd As Long, ByVal Class As a String, Optional FindId As an Integer, Optional Id As an Integer) As Long '[mycode_id: 1934], edittime: 2011/8/3 3:30:07 Dim Hwnd2 As Long Dim FindHwnd As Long, TempFindHwnd As Long Hwnd2=GetWindow (WinHwnd GW_CHILD) While FindHwnd=0 And Hwnd2 & gt; 0 If GetClass (Hwnd2)=Class Then TempFindHwnd=Hwnd2
If Id=FindId Then FindHwnd=TempFindHwnd GoTo DoEnd The Else Id=Id + 1 End the If End the If