Jump to content

ControlClick


Recommended Posts

ControlClick clicks instantly on the coordinates, so is there any way to change the speed to slow like in MouseClick?

Get the coordinates, use mouse move. Then use control click=P Edited by Szhlopp
Link to comment
Share on other sites

something like:

Func MouseControlClick($title, $text, $ControlID, $button = "left", $clicks = 1, $x = 0, $y = 0, $speed = 10)
  ; This function moves the mouse to the given position and then clicks the ID
  Local $xy
  
  $xy = ControlGetPos($title, $text, $ControlID)
  If $x = 0 Then
    $x = Floor(0.5 * $xy[2])
    $y = Floor(0.5 * $xy[3])  
  EndIf
  
  MouseMove($xy[0]+$x, $xy[1]+$y, $speed)
  ControlClick($title, $text, $ControlID, $button, $clicks, $x, $y)
  
EndFunc

In the beginning there was nothing and then even that exploded - anonymous

Link to comment
Share on other sites

the mousemove gives a move to the position $x and $y relative to the control position, if that answers your question, otherwise, please elaborate a bit

In the beginning there was nothing and then even that exploded - anonymous

Link to comment
Share on other sites

Would sending a different click first move the cursor, then sleep, then send the appropriate click work? I'm not much of a computer gamer, so I don't know if the other click would send a different command. Another possibility is setting it up as a virtual machine, so that it can run it's separate operations.

Giggity

Link to comment
Share on other sites

Someone suggested I use one for my "multiple platform" testing yesterday, I hadn't thought of using one before, but it uses a partition on your hard drive to run a seperate instance of windows (or any other operating system). Like your running two computers at the same time on one machine ie virtual machine. he gave me these two sites. I haven't tried them yet. But I did get to use one in College. http://www.microsoft.com/windows/products/...pc/default.mspx and http://www.virtualbox.org/

Giggity

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...