stigma Posted April 2, 2007 Posted April 2, 2007 Hey all, I'm making a script that isn't totally automated, but intended to also work while a user is actually manipulating stuff as the same time. In some cases I want the script to make some mouseclicks. Normally this would be simple to do with the mouse functions I allready know, but if I just use the mouse movemnet and mouseclick commands then the control of the mouse is very much taken away from the user. What I want then to acomplish is that if the script needs to do a click, it saves the information about the mouse pointers current location, then does what it needs to do, and then returns back to the location it was. THere is only one thing I am missing in order to be able to script this, and that is some way of gettign the location information for the mousepointer. I have been unable to find this myself, but I assume that its something that is probably in autoit allready. Can someone enlighten me, or point me in the direction of relevant documentation for such a feature or something similar I might be able to use? -Stigma
McGod Posted April 2, 2007 Posted April 2, 2007 MouseGetPos () [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
stigma Posted April 2, 2007 Author Posted April 2, 2007 Typical hehe, I allways find the answer just AFTER posting. Oh well, perhaps someone can learn from this atleast. Apparently there is a MouseGetPos() command that is useful for this. Documentation was found in the autoit helpfile. -Stigma
stigma Posted April 2, 2007 Author Posted April 2, 2007 Chip said: MouseGetPos ()Too quick for me Thanks tho. Now I can get working -Stigma
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