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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

[ahk_l] 구글의 Gmail 자동로그인 소스

참고주소 : http://www.autohotkey.com/forum/topic34972.html


https://www.google.com/accounts/Login?continue=http://www.google.com/&hl=en

주소의 소스의 form의 input에 



<input  type="text" name="Email"  id="Email"  size="18" value="myName"  class='gaia le val'  />


<input  type="password" name="Passwd" id="Passwd" size="18"  class="gaia le val" />


gUser값과 gPass의 값을 email과 passwd에 대입시킨다.


자료 전송 후 완료되면 http://mail.google.com 로 리디렉션 한다.



gUser:="이메일"

gPass:="비밀번호"

COM_Init()

pwb := COM_CreateObject("InternetExplorer.Application")

COM_Invoke(pwb , "Visible=", "True") ;"False" ;"True" ;

url:="https://www.google.com/accounts/Login?continue=http://www.google.com/&hl=en"

COM_Invoke(pwb, "Navigate", url GETdata)

loop

      If (rdy:=COM_Invoke(pwb,"readyState") = 4)

         break

; but tank how did you get the form element names

; remember the query string?

; the part before the = sign is the feild name :)

;i only care about the ones the user will interact with not the hidden ones

COM_Invoke(Email:=COM_Invoke(all:=COM_Invoke(doc:=COM_Invoke(pwb,"Document"),"All"),"Item","Email"),"value",gUser)

; Now i already declared a document and an all collection no need to repeat that process now

COM_Invoke(Passwd:=COM_Invoke(all,"Item","Passwd"),"value",gPass)

COM_Invoke(signIn:=COM_Invoke(all,"Item","signIn"),"Click")

sleep 500

loop

      If (rdy:=COM_Invoke(pwb,"readyState") = 4)

         break

COM_Invoke(pwb, "Navigate", "http://mail.google.com/")

COM_Release(signIn),COM_Release(Passwd),COM_Release(Email),COM_Release(all),COM_Release(doc),COM_Release(pwb)

COM_Term()




참고주소 : http://www.autohotkey.com/forum/topic58841.html


html 소스 중  type과 class부분이 일치하는 곳을 클릭할 경우,


<input type="submit" index="3" value=" " class="loginButton" />



Loop %   COM_Invoke(pwb,"document.all.tags[input].length") {
   if   (COM_Invoke(pwb,"document.all.tags[input].item[" A_Index-1 "].type")="submit")
    &&   (COM_Invoke(pwb,"document.all.tags[input].item[" A_Index-1 "].className")="loginButton") {
      COM_Invoke(pwb,"document.all.tags[input].item[" A_Index-1 "].click")
      break
   }
}











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

?

List of Articles
번호 분류 제목 날짜 조회 수
237 Server PHP 가속기 secret 2016.03.05 540
236 Server 아파치 MPM 모드와 nginx 비교(apache 2.4 vs nginx) 2016.03.05 6516
235 Server PHP Opcache 속도개선 시키기 2016.03.07 1833
234 Server PHP Opcache 적용 전과 후의 비교 1 2016.03.07 1325
233 Server CSS, JS파일, gzip으로 한꺼번에 압축해서 전송하기 2016.03.08 1248
232 Server 윈도우 time_wait 없애기 2016.03.08 3920
231 Server [Apache] mod_expires .htaccess을 수정하여 브라우저 캐싱하기 2016.03.16 1658
230 Server 아파치 모듈 mod_deflate 압축하기 1 2016.03.17 1352
229 Server 서버 최적화 시키기(APACHE, PHP, MYSQL, XE 압축&캐싱&버퍼) 3 file 2016.03.18 6239
228 Server APACHE PHP 에러 잡기 1 2016.03.23 9984
227 Server 아파치 캐시 설정 이후 잦은 아파치 자동멈춤 현상 원인분석 3 2016.03.23 2777
226 Server MySQL 5.6 my.cnf 글로벌 변수인지 세션변수인지 확인 2016.03.24 1529
225 Server [아파치 error.log] Fatal Error Unable to reattach to base address file 2016.03.25 1643
224 Server 아파치 httpd.conf 재시작 없이 설정 적용하기 2016.03.26 4277
223 Server XCOPY로 중요파일 백업하기 2016.03.26 1981
222 WindowsTip 예약된 작업(작업 스케줄러 시작) 2016.03.26 4118
221 Server 윈도우 TCP 연결의 개수를 최대한 늘이기 2016.03.26 3486
220 Server XE 어느날 갑자기 다운로드가 되지 않을때 해결방법 file 2016.04.07 1351
219 Server XE 스케치북 모바일 비회원 댓글쓰기에서 홈페이지 이메일 기입란 삭제하기 2016.04.08 2982
218 Server ECS P43T-AD3, Asus C381GM, Driver(두번째 사용했던 서버 드라이버) file 2016.04.12 2804
Board Pagination Prev 1 ... 33 34 35 36 37 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소