Jump to content

IE.au3 - Mousemove on border of <LI class=tes>


Recommended Posts

hello everyone

I have some problem with Mousemove on border of <LI class=tes>

for the beginning I write….

$oIE = _IECreate ("http://www.somewebsite.com")

global $ivar= _IEGetObjByName ($oIE,"rsi")

;;;;;This Means That I have <div id=rsi> on the page.

;;;;;;;; Now I want mousemove on border of <div id=rsi>

$iScreenX = _IEPropertyGet($ivar, "screenx")

$iScreenY = _IEPropertyGet($ivar, "screeny")

$iBrowserX = _IEPropertyGet($ivar, "browserx")

$iBrowserY = _IEPropertyGet($ivar, "browserY")

$iWidth = _IEPropertyGet($ivar, "width")

$iHeight = _IEPropertyGet($ivar, "height")

MouseMove($iScreenX, $iScreenY)

MouseMove($iScreenX + $iWidth, $iScreenY)

MouseMove($iScreenX + $iWidth, $iScreenY + $iHeight)

MouseMove($iScreenX, $iScreenY + $iHeight)

MouseMove($iScreenX, $iScreenY)

MouseMove($iScreenX + $iWidth/2, $iScreenY + $iHeight/2)

Its works great!!!! But on this page there are elements that don’t have <id> or <name> , they have <class>, for example <LI class=tes>. I want mousemove on border of <LI class=tes>

_IEGetObjByName ($oIE," tes") – don’t work because <class> is not <id> or <name>.

So I write

$oIE = _IECreate ("http://www.somewebsite.com")

global $ivar= _IEGetObjByName ($oIE,"rsi")

global $ivarli= _IETagNameGetCollection ($ivar,"li")

$iScreenX = _IEPropertyGet($ivarli, "screenx")

$iScreenY = _IEPropertyGet($ivarli, "screeny")

$iBrowserX = _IEPropertyGet($ivarli, "browserx")

MouseMove($iScreenX, $iScreenY)

MouseMove($iScreenX + $iWidth/2, $iScreenY + $iHeight/2)

And I have this error

IE.au3 V2.4-0 Error from function _IEPropertyGet, $_IEStatus_InvalidObjectType

And nothing happens

I want mousemove on border of <LI class=tes>

Please help me to find a solution!

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...