Hi,
I'm trying to get the state of a button in a website at work.
The state is made visible for the user by showing him a green V or a red X.
This however, is done by an image in the button itself.
Is there anyway to get the BACKGROUND-IMAGE url from the _IEobject ?
<INPUT name=ctl00$cph$CustomerDataGrid$ctl05$Month1Button class=MonthButton id=ctl00_cph_CustomerDataGrid_ctl05_Month1Button style="HEIGHT: 24px; WIDTH: 26px; BACKGROUND-IMAGE: url(../../Css/Icons/check_16.gif); BACKGROUND-REPEAT: no-repeat; BACKGROUND-POSITION: center 50%" type=submit value=" ">
The code below is working when I want to click the button.
But how to get the Image returned??
check_16.gif = V
close_16.gif = X
#include <Array.au3>
#include <IE.au3>
#include <MsgBoxConstants.au3>
Local $xnr, $oIE, $oDiv, $cRowCount, $cArtNum_IE, $oButton
; Maak verbinding met de website
$oIE = _IEAttach("http://intranet/CustomerBonus/Pages/Admin/ManageCustomergroupMemberships.aspx", "url")
; Verkrijg de DataGrid aantal regels
$oDiv = _IEGetObjById($oIE, "ctl00_cph_CustomerDataGrid")
$oButton = _IEGetObjByName($oIE, "ctl00_cph_CustomerDataGrid_ctl05_Month1Button")
_IEAction($oButton, "click")