Jump to content

Recommended Posts

Posted (edited)

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
Posted

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

Posted

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

Posted

how bout

ctrldown mouseclick ctrlup?

then if needed you could add sleep inbetween the ctrldown and the mouseclick

How does pressing control help in here
Posted

Cause I ain't had enough coffee yet this morning and thought you where doing a control click, not clicking on a control :-P

Maybe some code would spread some light?

Giggity

Posted

Well if this helps, im trying to make a program that shoots in random places(in fps), but i want it to do it in minimized window so i could play the game at same time on myself

Posted

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

Posted

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

Posted

how about not minimizing the window, but hiding the window?

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

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
  • Recently Browsing   0 members

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