bf2forlife Posted July 28, 2008 Posted July 28, 2008 ControlClick clicks instantly on the coordinates, so is there any way to change the speed to slow like in MouseClick?
Szhlopp Posted July 28, 2008 Posted July 28, 2008 (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 July 28, 2008 by Szhlopp RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+'
herewasplato Posted July 28, 2008 Posted July 28, 2008 Sleep? [size="1"][font="Arial"].[u].[/u][/font][/size]
bf2forlife Posted July 29, 2008 Author Posted July 29, 2008 Szhlopp, ControlMouseMove() would be good and herewasplato the mouse needs to move before the click so sleep would not work
DMEE Posted July 29, 2008 Posted July 29, 2008 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
DMEE Posted July 29, 2008 Posted July 29, 2008 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
bf2forlife Posted July 29, 2008 Author Posted July 29, 2008 your function uses normal mousemove and controlclick, but i want it to work to a minimized window so normal mousemove wouldnt work with that
youknowwho4eva Posted July 29, 2008 Posted July 29, 2008 how bout ctrldown mouseclick ctrlup? then if needed you could add sleep inbetween the ctrldown and the mouseclick Giggity
bf2forlife Posted July 29, 2008 Author Posted July 29, 2008 how boutctrldown mouseclick ctrlup?then if needed you could add sleep inbetween the ctrldown and the mouseclickHow does pressing control help in here
youknowwho4eva Posted July 29, 2008 Posted July 29, 2008 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
bf2forlife Posted July 29, 2008 Author Posted July 29, 2008 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
youknowwho4eva Posted July 29, 2008 Posted July 29, 2008 so you want it to move the cursor in position and delay before clicking? Giggity
youknowwho4eva Posted July 29, 2008 Posted July 29, 2008 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
bf2forlife Posted July 29, 2008 Author Posted July 29, 2008 the problem is ControlClick doesnt move crosshair at all
youknowwho4eva Posted July 29, 2008 Posted July 29, 2008 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
youknowwho4eva Posted July 29, 2008 Posted July 29, 2008 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
DMEE Posted July 29, 2008 Posted July 29, 2008 how about not minimizing the window, but hiding the window? In the beginning there was nothing and then even that exploded - anonymous
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