Created
August 25, 2013 21:31
-
-
Save TLMcode/6336450 to your computer and use it in GitHub Desktop.
yahoo registration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| url = https://edit.yahoo.com/registration? | |
| CredArray := ["aosdjasd","aosdsaajasd","aosdjsaasd","SomePassword1234","6472219999",11,5,1985] | |
| ieObj := ComObjCreate("InternetExplorer.Application"), ieObj.Visible:=1 | |
| ieObj.Navigate(url), Wait2(ieObj), FillFields(ieObj, CredArray, "male") | |
| Return | |
| FillFields(obj, cArr, gdr) | |
| { | |
| fArr := [_:="first-name","last-name","user-name","password","mobile","month","day","year",_] | |
| If !(gdr~="i)\b(fe|)male\b") | |
| { | |
| Msgbox, 0x10, Whoops!, % ("You must enter either male or female in the gender parameter!", obj.quit) | |
| Return | |
| } | |
| For val in fArr | |
| obj.document.getElementById(fArr[val]).focus(), obj.document.getElementById((v:=val<=8)?fArr[val]:"").value:=v?cArr[val]:"" | |
| (obj.document.getElementById((gdr="male"?"":"fe")"male").checked:=1), obj.document.getElementById("info-form").submit() | |
| } | |
| Wait2(obj,int=100) { | |
| While !(rs~="4{" int "}\b") | |
| rs.=obj.ReadyState | |
| } | |
| esc::ExitApp ; << press escape to exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment