smellyfingers Posted September 22, 2012 Posted September 22, 2012 Hi i wrote this code to set values in a form field (IE) to search for numbers and was wondering if i can do the reverse as easy, instead of setting the value i want to retrieve an existing value into an variable for later use? Any ideas would be much appreciated Sample code for setting the value: #include <IE.au3> Local $oIE = _IEAttach("Some Site") WinActivate("Some Site") ;MsgBox(0, "The URL", _IEPropertyGet($oIE, "locationurl")) $oIE.document.all.menu.contentWindow.document.getElementById("Cat_pID002_").childNodes.item(2).childNodes.item(0).click Sleep(300) $oIE.document.all.menu.contentWindow.document.getElementById("Cat_pID021_").childNodes.item(2).childNodes.item(0).click Sleep(300) $oIE.document.all.menu.contentWindow.document.getElementById("cID021_12_").childNodes.item(0).click Sleep(300) $oIE.document.all.data.contentWindow.document.forms.CustomerSearchForm.SEARCH_ORGNO.value = "1234567890" Sleep(300) _IELoadWait ($oIE) Thanx in advance
smellyfingers Posted September 23, 2012 Author Posted September 23, 2012 Nevermind, it was easier then i thought (embarrassing) $value = $oIE.document.all.data.contentwindow.document.forms.CustomerSearchForm.SEARCH_ORGNO.value
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