d0n Posted January 21, 2008 Share Posted January 21, 2008 GUICtrlSetData($status, "Logging in...") $IE = _IECreate($Login_page) $Form = _IEFormGetCollection ($IE, 0) $Query = _IEFormElementGetCollection ($Form, 0) _IEFormElementSetValue ($Query, $username) $Query = _IEFormElementGetCollection ($Form, 1) _IEFormElementSetValue ($Query, $userpass) _IEFormSubmit ($Form) GUICtrlSetData($status, "Logged in, uploading info...") not sure why it doens't click login i am just trying to log into some forum Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted January 21, 2008 Share Posted January 21, 2008 GUICtrlSetData($status, "Logging in...") $IE = _IECreate($Login_page) $Form = _IEFormGetCollection ($IE, 0) $Query = _IEFormElementGetCollection ($Form, 0) _IEFormElementSetValue ($Query, $username) $Query = _IEFormElementGetCollection ($Form, 1) _IEFormElementSetValue ($Query, $userpass) _IEFormSubmit ($Form) GUICtrlSetData($status, "Logged in, uploading info...") not sure why it doens't click login i am just trying to log into some forum Instead of _IEFormSubmit, get the Element using _IEformGetCollection/byname and then use _IEAction($WHATEVER,'click') Link to comment Share on other sites More sharing options...
d0n Posted January 21, 2008 Author Share Posted January 21, 2008 (edited) ops nvm not working, gonna see if i can figure it out :S Edited January 21, 2008 by d0n Link to comment Share on other sites More sharing options...
d0n Posted January 21, 2008 Author Share Posted January 21, 2008 ok working now, thanks again Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted January 21, 2008 Share Posted January 21, 2008 ok working now, thanks again Remember _IEAction does not initialize _IELoadWait so it will not wait for the page to load before continuing executing the next code. Link to comment Share on other sites More sharing options...
d0n Posted January 22, 2008 Author Share Posted January 22, 2008 yea i noticed that thanks again! 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