Jump to content

Recommended Posts

Posted

i want to transport fully from actool (other macro making thing) to autoit because autoit has the ability to cramp my macro into a .exe and plant it in other computers.

however, what stops me from fully using autoit is the fact that i can never get the coordinates of the mouse.

in actool, i'd pick my location, ctrl+m it in actool and i get this kind of line in it automaticly

mousepos xxx, yyy

and the mouse moves there. (well, teleports. that's one of the reasons i want to use autoit. i can make the mouse actually MOVE.)

however, i didn't find this option in autoit.

i CAN use actool to find the coordinates, copy them and paste in autoit, but i don't want to. i want to use only autoit to make macros.

the help file for the MouseMove command didn't mention any way of discovering the coordinates of the mouse.

question: how do you find out the coordinates of the mouse in autoit?

Posted

Would this answer your questions?

Dim $a = MouseGetPos()
MsgBox(0,"Current mouse coordinates","x: "&$a[0]&@CRLF&"y: "&$a[1]&@CRLF&@CRLF&"Click OK to move mouse instantly to coordinates 300,300.")
MouseMove(300,300,0)

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Posted

no, see, i need the mouse to move to a certain point.

except i don't know the coordinates of said point.

what i'm asking is, is there a way to find the coordinates of a point, without leaving the autoit editor window?

like, ctrl+m in actool.

Posted

no, see, i need the mouse to move to a certain point.

except i don't know the coordinates of said point.

what i'm asking is, is there a way to find the coordinates of a point, without leaving the autoit editor window?

like, ctrl+m in actool.

I have no idea what ctrl+m does in actool, but in this light I'd suggest following PE666's suggestion.

ctrl+F6 = autoit window info tool

alt+F6 = macro recorder

Roses are FF0000, violets are 0000FF... All my base are belong to you.

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...