Skip to content
조회 수 15123 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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


IEGet( name="" ) 

  IfEqual, Name,, WinGetTitle, Name, ahk_class IEFrame ; Get active window if no parameter 

  Name := ( Name="New Tab - Windows Internet Explorer" ) ? "about:Tabs" : RegExReplace( Name, " - (Windows|Microsoft) Internet Explorer" ) 

  For pwb in ComObjCreate( "Shell.Application" ).Windows 

     If ( pwb.LocationName = Name ) && InStr( pwb.FullName, "iexplore.exe" ) 

Return pwb 



; 루프문을 돌리는 이유는 해당 페이지가 열려서 페이지의 내용 일부분이 일치할때까지 돌리기 위함.

A2=창이름

loop

{

sleep, 1000

pwb := IEGet(A2) 

pwb.Visible := True

;Sleep, 100

;frame := pwb.document.parentWindow

;test := frame.document.documentElement.innerText

;htm := frame.document.documentElement.innerHTML


;프레임 이름을 가져오기(;두종류 - topFrame, leftFrame, mainFrame)

frame := pwb.document.parentWindow.frames["leftFrame"]

test := frame.document.documentElement.innerText

htm := frame.document.documentElement.innerHTML


;Gui, Add, Text,, Please enter your name:

;Gui, Add, Edit, w600 h500, %htm%

;Gui, Show

;msgbox, 바보


ifinstring, htm, ZNGMWLIN00010T01

{

break

}

}


frame.document.getElementsByTagName("A")[4].click()

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

?

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소