tatty Posted February 10, 2010 Share Posted February 10, 2010 I creat script for login to game website, but I cann't login. The site check for hidden text. I want to know how to send the hidden text to password box. below is my script; #include <IE.au3> #Open Internet Explorer and website audition auto $oIE = _IECreate ("about:blank") _IEPropertySet ( $oIE, "Width", "400") _IEPropertySet ( $oIE, "Height", "600") _IENavigate ($oIE, "http://sf.gg.in.th/member/logon_v2.aspx?d=d3a5673aa98ae4d3ec8d1e4cf6f01f13") sleep (5000) ;$oIE = _IEAttach ("http://sf.gg.in.th/member/logon_v2.aspx?d=d3a5673aa98ae4d3ec8d1e4cf6f01f13", "URL") sleep (5000) $oForm1 = _IEFormGetObjByName ($oIE, "form1") $username = "tattygame2" $password = "siriratk" $oQuery = _IEFormElementGetObjByName ($oForm1, "txtLogonX") _IEFormElementSetValue ($oQuery, $username) $oQuery1 = _IEFormElementGetObjByName ($oForm1, "txtPasswordX") _IEFormElementSetValue ($oQuery1, $password) thak you to everybody in advance. Link to comment Share on other sites More sharing options...
Steveiwonder Posted February 10, 2010 Share Posted February 10, 2010 (edited) This works just fine... #include <IE.au3> $oIE = _IECreate ("http://sf.gg.in.th/member/logon_v2.aspx") _IEPropertySet ( $oIE, "Width", "400") _IEPropertySet ( $oIE, "Height", "600") $oForm1 = _IEFormGetObjByName ($oIE, "form1") $username = "tattygame2" $password = "siriratk" $oUsername = _IEFormElementGetObjByName ($oForm1, "txtLogonX") _IEFormElementSetValue ($oUsername, $username) $oPassword = _IEFormElementGetObjByName ($oForm1, "txtPasswordX") _IEFormElementSetValue ($oPassword, $password) _IEFormImageClick($oIE, "ImageButton1", "name") Edited February 10, 2010 by Steveiwonder They call me MrRegExpMan Link to comment Share on other sites More sharing options...
FinalVersion Posted February 10, 2010 Share Posted February 10, 2010 (edited) ... Edited February 10, 2010 by FinalVersion [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
Steveiwonder Posted February 10, 2010 Share Posted February 10, 2010 I think its ok? its only a website login. They call me MrRegExpMan Link to comment Share on other sites More sharing options...
FinalVersion Posted February 10, 2010 Share Posted February 10, 2010 Oh sorry, I seen "Game" in the op. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
tatty Posted February 10, 2010 Author Share Posted February 10, 2010 This works just fine... #include <IE.au3> $oIE = _IECreate ("http://sf.gg.in.th/member/logon_v2.aspx") _IEPropertySet ( $oIE, "Width", "400") _IEPropertySet ( $oIE, "Height", "600") $oForm1 = _IEFormGetObjByName ($oIE, "form1") $username = "tattygame2" $password = "siriratk" $oUsername = _IEFormElementGetObjByName ($oForm1, "txtLogonX") _IEFormElementSetValue ($oUsername, $username) $oPassword = _IEFormElementGetObjByName ($oForm1, "txtPasswordX") _IEFormElementSetValue ($oPassword, $password) _IEFormImageClick($oIE, "ImageButton1", "name") Thank you for your kind anyhow it still don't work. if I login by manual, the password box will see dot (........) then I can login successful. but if I use this code, the password box isn't hiddened, and the website show invalid password even I use the same password as manual login above. please find image below for clearly identified. Link to comment Share on other sites More sharing options...
tatty Posted February 10, 2010 Author Share Posted February 10, 2010 I just found what is wrong, now I fix it and program work fine. Anyhow thank you for all suppport Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now