Jump to content

Get value in a similar way to set value?


Recommended Posts

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 :ILA2:

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...