diikee Posted May 21, 2008 Share Posted May 21, 2008 <A class=menu onmouseover="window.status='zoom all the way out'; return true;" onmouseout="window.status=''" onclick="return zoomOutMax();" href="">NO ZOOM</A>$onzs = _IETagnameGetCollection($oIE, "a")For $onz in $onzs If String($onz.className) = "menu" Then if String(_IEPropertyGet($onz.className, "innerText")) = "NO ZOOM" Then _IEAction($onz, "focus") Sleep(500) _IEAction($onz, "focus") $iScreenX = _IEPropertyGet($onz, "screenx") $iScreenY = _IEPropertyGet($onz, "screeny") $iWidth = _IEPropertyGet($onz, "width") $iHeight = _IEPropertyGet($onz, "height") MouseMove($iScreenX + $iWidth/2, $iScreenY + $iHeight/2) Sleep(500) MouseClick("left") Sleep(500) MouseDown("left") MouseUp("left") ExitLoop EndIf EndIfNextit's complaining about my innerText reference ERROR: _IEPropertyGet() called with Const or expression on ByRef-param(s). if String(_IEPropertyGet($onz.className, "innerText") Link to comment Share on other sites More sharing options...
diikee Posted May 21, 2008 Author Share Posted May 21, 2008 Solved: changed the $onz.className to ($onz, "innerText") Link to comment Share on other sites More sharing options...
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