Wolfiesaxah

Annoying Mouse Move

3 posts in this topic

#1 ·  Posted



 

     ;Select Gender      
            If IsObj($oIE.document.getElementById("malefemale")) Then
                  $oIE.document.getElementById("malefemale").scrollIntoView
                  Local $MF = $oIE.document.getElementById("malefemale")
                  MouseMove(_IEPropertyGet($MF, "screenx") + 10, _IEPropertyGet($MF, "screeny") + 10)                  
            Endif    

I am trying to make the mouse move/point to a dropdown listbox after filling the text boxes at the top part of the webpage but the problem is the dropdown listbox "malefemale" is below the visible part of the webpage. I can use the scrollintoview to see the control/object but the browser displays the object at the topmost part of the screen and the screenx and screeny seem to get stuck at the old position of the object, the mouse does move but it moves way down at the bottom of the screen, doesn't matter where the malefemale control/object is positioned. 

Can I get AutoIt to move the cursor to exactly where the object is?

Share this post


Link to post
Share on other sites



#2 ·  Posted

Please explain why you are using MouseMove. Have you tried _IEFormElementOptionSelect?

Share this post


Link to post
Share on other sites

#3 ·  Posted

53 minutes ago, Danp2 said:

Please explain why you are using MouseMove. Have you tried _IEFormElementOptionSelect?

Yes I am trying to show the automation by showing the mouse moving to an object and clicking it, if just plain object.click my students may not quickly understand what AI can do.

Share this post


Link to post
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