Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Sample AutoIT code for Hamed A.
- Local $hWnd = WinWait("www.continuouslearningacademy.guru/resources/2/private2/ - Google Chrome","","20") ;wait 20 seconds for Popup Security Window
- If WinExists("www.continuouslearningacademy.guru/resources/2/private2/ - Google Chrome") Then
- WinActivate($hWnd) ;activate the window
- $username = "challenge" ;user
- $password = "secret" ;password
- Send($username&"{TAB}") ;"enter" username and then a Tab
- Sleep(1000) ;wait 1 second
- Send($password) ;"enter" password
- Sleep(1000)
- Send("{ENTER}") ;finally I send an Enter Key to submit the values in the popup window
- EndIf
- Exit ;end of the AutoIT script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement