Jump to content

MouseMove from current position [amount] of units down

Recommended Posts


so I was trying to create a script which clicks an option of a dropdown menu but can't find a solution to move the mouse from the current position 50 units down...

If someone knows how to do this pls help me :)

[EDIT: MBY the solution is to just use MouseGetPos and then use MouseMove(MouseGetPos[0],MouseGetPos[1]+50)? but idk... mby there is a better solution...

Global $aPos = MouseGetPos

] Edit 2: NOPE Isn't working...

Thanks in advance


Edited by jannikrendl
Link to comment
Share on other sites

  • Moderators

You're asking for help with a dropdown menu, without stating what kind of menu it is, which makes it more than a little difficult to make suggestions. Is it a desktop app or website? Which app/site is it? How about a screenshot of the dropdown menu? The more you give us the more we can give you ;)


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites


This is the dropdown menu. I would like to automate the process of changing the properties by clicking at the file / move the mouse (by myself) to the the file and then simply start the script so it is able to change the file's properties...



Edited by jannikrendl
Link to comment
Share on other sites

In my (limited) experience with AutoIT, I either use the SEND, or get the actual pixel location of what I have to click on.

I assume you know how to get the pixel location using AutoIT Window Info and Finder Tool.

Sorry I can't suggest anything better.

Snoopy=====Still trying to shoot down that Red Baron :-))

Link to comment
Share on other sites

google broken?

not sure if you have to deal with twips 

func example()

Func _MouseMove ($iX, $iY)
    Local $dX = $iX  ;~ $iX*(65535.0/(@DesktopWidth-1))
    Local $dY = $iY  ;~ $iY*(65535.0/(@DesktopHeight-1))
    _WinAPI_Mouse_Event($MOUSEEVENTF_MOVE,$dX, $dY)
;~     DllCall ("user32.dll", "int", "mouse_event", "int", $MOUSEEVENTF_MOVE, "int", $dX, "int", $dY, "int", 0, "int", 0)


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

  • Create New...