AutoHotKey

ahk_l 과 com 의 이해

by 디케 posted Feb 22, 2011
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

ahk_l 과 com 의 이해


COM Object Reference [AutoHotkey_L]

Goto page 12345678  Next



COM Standard Library
Goto page 123 ... 414243  Next

   
   url:="http://www.google.com"
   pwb.Navigate(url)
   loop
      If !pwb.busy
         break

   ;; get the gui handle
   GuiHWND:= WinExist()
   
   ;; create an instance of Internet Explorer_Server return the hwnd
   ATLWinHWND := Atl_AxCreateContainer(GuiHWND,0,0,510,600, "Shell.Explorer")
   
   ;;get the iwebbrowser2 interface pointer
   pwb := Atl_AxGetControl( ATLWinHWND )
      



















   ; insert an HTMLfile into the control 
   doc := COM_AtlAxCreateControl( ctrl_hwnd, "HTMLfile" ) ; http://msdn.microsoft.com/en-us/library/da181h29 
   NativeCom(doc) ; ensures the "doc" object uses Native COM 
   doc.write(html) 



NativeCom( ByRef obj ) { ; ensures the "obj" object uses Native COM 
   if Not IsObject(obj) 
      return 
   ComObjError(false) 
   if Not ComObjType(obj,"iid") 
      obj := ComObjEnwrap(COM_Unwrap(obj)) 
   ComObjError(true) 
}