Landon Posted February 3, 2008 Share Posted February 3, 2008 (edited) http://www.autoitscript.com/autoit3/docs/f...#MouseCoordModeI want to know where to set all of these references, like where in the script?Here is my example...#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.4.9 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here if MsgBox ( 4, "RedVex 3.0 Installation", "Do you wish to install RedVex 3.0?") = 6 Then Run ("RV 3.0.rar", "", @SW_MAXIMIZE) MouseClick ( "button" [, 95, 135 [, 1 [, 0 ]]] ) MouseClick ( "button" [, 885 , 755 [, 1 [, 0 ]]] ) else MsgBox(0, "Installation canceled", "Installation canceled") EndIfWhere do I put the 0 reference's for...MouseCoordMode Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window:0 = relative coords to the active window1 = absolute screen coordinates (default)2 = relative coords to the client area of the active window Edited February 3, 2008 by Landon Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted February 3, 2008 Share Posted February 3, 2008 http://www.autoitscript.com/autoit3/docs/f...#MouseCoordMode I want to know where to set all of these references, like where in the script? Here is my example... #cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.4.9 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here if MsgBox ( 4, "RedVex 3.0 Installation", "Do you wish to install RedVex 3.0?") = 6 Then Run ("RV 3.0.rar", "", @SW_MAXIMIZE) MouseClick ( "button" [, 95, 135 [, 1 [, 0 ]]] ) MouseClick ( "button" [, 885 , 755 [, 1 [, 0 ]]] ) else MsgBox(0, "Installation canceled", "Installation canceled") EndIf Where do I put the 0 reference's for... MouseCoordMode Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window: 0 = relative coords to the active window 1 = absolute screen coordinates (default) 2 = relative coords to the client area of the active window Use the function Opt for mousecoordmode, place it where ever you want it to first initiate, so if at the top of your script then put it at the top. As for your MouseClicks, remove the brackets []. Brackets signify an optional parameter meaning they do not have to be filled unless you need it to be. But if you do need a different parameter for those options then default you just add the extra comma no bracket. So for example MouseClick('left') Link to comment Share on other sites More sharing options...
Valuater Posted February 3, 2008 Share Posted February 3, 2008 #cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.4.9 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- Opt("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client ; Script Start - Add your code below here If MsgBox(4, "RedVex 3.0 Installation", "Do you wish to install RedVex 3.0?") = 6 Then Run("RV 3.0.rar", "", @SW_MAXIMIZE) MouseClick("button" [, 95, 135 [, 1 [, 0 ]]]) MouseClick("button" [, 885, 755 [, 1 [, 0 ]]]) Else MsgBox(0, "Installation canceled", "Installation canceled") EndIfhttp://www.autoitscript.com/forum/index.ph...p;showfile=100#8) Link to comment Share on other sites More sharing options...
Landon Posted February 3, 2008 Author Share Posted February 3, 2008 Use the function Opt for mousecoordmode, place it where ever you want it to first initiate, so if at the top of your script then put it at the top. As for your MouseClicks, remove the brackets []. Brackets signify an optional parameter meaning they do not have to be filled unless you need it to be. But if you do need a different parameter for those options then default you just add the extra comma no bracket. So for example MouseClick('left')I just want the Coord's for an additional parameter.... So.. How would I add this? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted February 3, 2008 Share Posted February 3, 2008 I just want the Coord's for an additional parameter.... So.. How would I add this? MouseClick('Left',95,135) Link to comment Share on other sites More sharing options...
Landon Posted February 3, 2008 Author Share Posted February 3, 2008 MouseClick('Left',95,135)Ahh, thanks I got it. 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