jdelaney Posted May 10, 2012 Share Posted May 10, 2012 (edited) Hello all, Attempting to mouse over a specific piece of an IE browser, which then activates a list to appear with several links in it. The links are hidden until mouseover. Any suggestions on the best way to do this? I'm able to get the DOM object, and it's coordinates: $iMouseCoordX = $otest._offsets.left + 10 $iMouseCoordY = $otest._offsets.top + 10 I would like to use one of the _IE* functions, but none seem to be able to do what I need...so then i tried MouseMove: AutoItSetOption ( "MouseCoordMode", 2 ) ; 2 = relative coords to the client area of the active window MouseMove ( $iMouseCoordX, $iMouseCoordY, 50 ) This wasn't effective, since I have no idea how many toolbars might be present, and how to compensate the Y coord. Edit: just thought about it, i can get the controlpos of the window for the mousemove to work, but i'd still rather use an _ie* function. Edited May 10, 2012 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
stormbreaker Posted May 11, 2012 Share Posted May 11, 2012 ControlGetPos or any-other normal control commands won't work in IE or any other browsers. Proof: Try to get the Control info using AutoIt Window Info Tool... ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
sathish Posted May 11, 2012 Share Posted May 11, 2012 (edited) Same problem for me too Anybody please suggest how to click a javascript button I too tried every commands, nothing seems to work for me Edited May 11, 2012 by sathish Link to comment Share on other sites More sharing options...
jdelaney Posted May 11, 2012 Author Share Posted May 11, 2012 (edited) No, you use control get pos to get the actual client window...the dom object position, you must get through the dom properties...the combination of those two items is the location (assumed that it's visible on the screen...AND you are scrolled all the way at the top of the page...or else, you need to logically scroll down) Edited May 11, 2012 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
DaleHohm Posted May 11, 2012 Share Posted May 11, 2012 See Example 2 of _IEPropertyGet() in the helpfile. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
jdelaney Posted May 11, 2012 Author Share Posted May 11, 2012 Thanks, all set on the coordinates, is there any ability to perform a 'mouseover'? I know selenium may, but not sure the actual code to do it. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
DaleHohm Posted May 11, 2012 Share Posted May 11, 2012 $oElement.fireEvent("onmouseover") Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
jdelaney Posted May 11, 2012 Author Share Posted May 11, 2012 perfect! thanks, sir IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. 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