Sign in to follow this  
Followers 0
bf2forlife

ControlClick

22 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  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

Share this post


Link to post
Share on other sites

Sleep?


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Szhlopp, ControlMouseMove() would be good

and herewasplato the mouse needs to move before the click so sleep would not work

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

can you MouseMove inside control?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

your function uses normal mousemove and controlclick, but i want it to work to a minimized window so normal mousemove wouldnt work with that

Share this post


Link to post
Share on other sites

how bout

ctrldown mouseclick ctrlup?

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


Giggity

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

so you want it to move the cursor in position and delay before clicking?


Giggity

Share this post


Link to post
Share on other sites

yes

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

the problem is ControlClick doesnt move crosshair at all

Share this post


Link to post
Share on other sites

so the only solution I can think of is to go with a virtual machine, so it can use mouseclick and not interfere with your play.


Giggity

Share this post


Link to post
Share on other sites

what is this "virtual machine"?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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


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

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