foolove Posted October 4, 2011 Posted October 4, 2011 (edited) $sURL = "myurl.com" $oIE = _IECreate($sURL, 0, 0, 0) $HWND = _IEPropertyGet($oIE, "hwnd") WinSetState($HWND, "", @SW_MAXIMIZE) _IEAction($oIE, "visible") _IELoadWait($oIE) after I go to a site I want to follow a link on a site I did do and it seemed to work but was wondering if there was a best practice way to do this I did this as a simple guess $sURL = "myurl.com/linktourl" $oIE = _IECreate($sURL, 0, 0, 0) $HWND = _IEPropertyGet($oIE, "hwnd") WinSetState($HWND, "", @SW_MAXIMIZE) _IEAction($oIE, "visible") _IELoadWait($oIE) I noticed on the above I do create another IE instance would like to stay in teh same IE but foward to the new url Also I was wondering on forms for drop down list boxes say a form element with name blah and the option value for a dropdown list box is 3 the desired element value how would I specify this?? Also on input fields boxes I know their value as well so instead of doing mouseclick in the field box how can i specify a input value on dropdown list boxes and text boxes Edited October 4, 2011 by foolove
MrMitchell Posted October 4, 2011 Posted October 4, 2011 Go through all the _IE* functions in the Help File and check out the examples...you should find everything you need... $sURL = "myurl.com/linktourl" $oIE = _IECreate($sURL, 0, 0, 0) $HWND = _IEPropertyGet($oIE, "hwnd") WinSetState($HWND, "", @SW_MAXIMIZE) _IEAction($oIE, "visible") _IELoadWait($oIE) I noticed on the above I do create another IE instance would like to stay in teh same IE but foward to the new url You will want to use _IENavigate() when you want to change URL. Also I was wondering on forms for drop down list boxes say a form element with name blah and the option value for a dropdown list box is 3 the desired element value how would I specify this?? Try... _IEFormElementOptionselect() ?? Also on input fields boxes I know their value as well so instead of doing mouseclick in the field box how can i specify a input value on dropdown list boxes and text boxes Dropdown = _IEFormElementOptionselect() Text box = _IEFormElementSetValue()
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