Skip to content
AutoHotKey
2011.02.11 15:33

Internet Explorer Control

조회 수 19667 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

Internet Explorer Control


Overview

 Internet Explorer에서 컨트롤 embed 하기위한 COM 객체 encapulation입니다.


Functions

IE_Add(hWnd, x, y, w, h)
IE_Move(pwb, x, y, w, h)
IE_LoadURL("pwb, u)
IE_LoadHTML(pwb, h)
IE_GoBack(pwb)
IE_GoForward(pwb)
IE_GoHome(pwb)
IE_GoSearch(pwb)
IE_Refresh(pwb)
IE_Stop(pwb)
IE_Document(pwb)
IE_GetTitle(pwb)
IE_GetUrl("pwb)
IE_Busy(pwb)
IE_Quit(pwb)            ; iexplore.exe only
IE_hWnd(pwb)            ; iexplore.exe only
IE_FullName(pwb)         ; iexplore.exe only
IE_GetStatusText(pwb)         ; iexplore.exe only
IE_SetStatusText(pwb, sText = "")   ; iexplore.exe only
IE_ReadyState(pwb)
IE_Open(pwb)
IE_New(pwb)
IE_Save(pwb)
IE_SaveAs(pwb)
IE_Print(pwb)
IE_PrintPreview(pwb)
IE_PageSetup(pwb)
IE_Properties(pwb)
IE_Cut(pwb)
IE_Copy(pwb)
IE_Paste(pwb)
IE_SelectAll(pwb)
IE_Find(pwb)
IE_DoFontSize(pwb, s)
IE_InternetOptions(pwb)
IE_ViewSource(pwb)
IE_AddToFavorites(pwb)
IE_MakeDesktopShortcut(pwb)
IE_SendEMail(pwb)
CGID_MSHTML(pwb, nCmd, nOpt = 0)
GetHostWindow(pwb)
GetWebControl()
UrlHistoryEnum()
UrlHistoryClear()

iecontrol.ahk download


Example

AHK GUI에서 컨트롤 IE를 만듭니다.

Gui, +lastfound
h := WinExist()

IE_Add( h, 0, 0, 500, 500)

; Must be equal to or larger than the IE_Add size
; or some of the displayed web page will be cut off.
Gui, Show, h500 w500

IE_LoadURL("http://www.yahoo.com/)
return 

이것 거의 동일한 수행하지만 더 많은 고급 기능 중 일부 보여줍니다.

CLSID를하고 뚜껑 수립하는 방법에 대한 설명 여기에 주어집니다 [1]

#Include IEControl.ahk
#SingleInstance force

GoSub, GuiStart

Gui, +LastFound +Resize
Gui, Show, w800 h600 Center, WebBrowser
hWnd := WinExist()

CLSID_WebBrowser := "{8856F961-340A-11D0-A96B-00C04FD705A2}"
IID_IWebBrowser2 := "{D30C1661-CDAF-11D0-8A3E-00C04FC9E26E}"
pwb := CreateObject(CLSID_WebBrowser, IID_IWebBrowser2)

AtlAxAttachControl(pwb, hWnd)

IE_LoadURL("pwb, "http://www.autohotkey.com/")
Sleep 5000
IE_LoadURL("pwb, "http://www.autohotkey.com/forum/")
Sleep 5000
IE_GoBack(pwb)
Sleep 3000
IE_GoForward(pwb)
Return

GuiStart:
AtlAxWinInit()
CoInitialize()
Return

GuiClose:
Gui, %A_Gui%:Destroy
Release(pwb)
CoUninitialize()
AtlAxWinTerm()
ExitApp 

[edit]Links


Back to COM Wrappers











로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
697 컴퓨터잡담 Microsoft .NET Framework 버전 2.0 재배포 가능 패키지(x86) 1 1 file 2011.12.15 5092
696 Server Minify로 CSS, JS파일, gzip으로 한꺼번에 압축해서 전송하기 file 2016.11.27 4375
695 컴퓨터잡담 MouseOver - Background color, 마우스오버시 백그라운드 컬러 지정 7 2010.07.10 11041
694 컴퓨터잡담 MP3 소리 크기 조절 프로그램 file 2016.08.14 3645
693 Excel MS Office 2007 Excel 최근 문서 목록 삭제하기 1 2012.02.13 22243
692 WindowsTip MS 에센셜 정식한글판 (MSE) 2 3 2012.08.07 6732
691 WindowsTip MS-DOS 모드에서 Windows 복원 방법 3 2013.02.26 8188
690 Server MySQL - 속도저하에 따른 웹페이지 접속 지연 2016.03.03 1321
689 Server mysql 16CPU / 16GB My.cnf 1 2016.07.26 2530
688 Server MySQL 5.6 my.cnf 글로벌 변수인지 세션변수인지 확인 2016.03.24 1549
687 컴퓨터잡담 MySQL FEDERATED / InnoDB is disabled, myint64.dll 오류 어찌하오리 4 2010.04.19 27710
686 컴퓨터잡담 MYSQL my.cnf 최적화 15 2010.04.07 22600
685 컴퓨터잡담 MYSQL Qcache 값 조정~~~ 1 2010.04.13 19556
684 컴퓨터잡담 MySQL TABLE 손상시 대응방법(db 내용이 안 나올때) file 2009.08.24 31860
683 컴퓨터잡담 mysql threads_created 뭐냥? 4 2010.04.13 12247
682 컴퓨터잡담 mysql 날짜타입에 기본값으로 현재시간넣기 1 2009.12.07 38589
681 컴퓨터잡담 mysql 명령어 1 2 2009.12.04 12370
680 컴퓨터잡담 MYSQL 미 해결 과제 : Can't connect to MySQL server on 'localhost'(10055) 3 3 2009.11.21 64266
679 컴퓨터잡담 MYSQL 설정에 관한 조언 2 2012.02.04 4604
678 Server mysql 실행이 안되거나 테이블(사용중) 손상이 잃어난 경우 2 2012.07.14 13114
Board Pagination Prev 1 ... 10 11 12 13 14 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소