Sign in to follow this  
Followers 0
Landon

Need help with all of these...

6 posts in this topic

#1 ·  Posted (edited)

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

Edited by Landon

Share this post


Link to post
Share on other sites



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')

Share this post


Link to post
Share on other sites

#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")
EndIf

http://www.autoitscript.com/forum/index.ph...p;showfile=100#

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

I just want the Coord's for an additional parameter.... So.. How would I add this?

MouseClick('Left',95,135)

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
Sign in to follow this  
Followers 0