HelpAuto It

Posts 16 of 6 · Page 1 of 1
Auto It
Hey guys,
I am trying to simulate a left mouse click but it's not working
I tried
Code:
ControlClick("Vindictus", "", "", "left", 1)
and
Code:
MouseClick("left")
but it doesn't work when I activate it. The right click works for some reason though.
Code:
ControlClick ("Vindictus" , "" , "" , "left" , $NumberOfClicks , $X , $Y )
or

Code:
MouseClick ( "left" , $X , $Y , $NumberOfClicks , $Speed ) ;10-20 speed is fine
Never tried without using Mouse coordinates, so that may be the problem
Quote Originally Posted by badhomaks View Post
Hey guys,
I am trying to simulate a left mouse click but it's not working
I tried
Code:
ControlClick("Vindictus", "", "", "left", 1)
and
Code:
MouseClick("left")
but it doesn't work when I activate it. The right click works for some reason though.
You have to tell the mouse everything. What to do ("left/right/middle click?") where to go (X, Y co-ordinates either in number or variable), how many and how fast .

Here's some sample code for you, straight from SinBotv2.4

Code:
	MouseClick ("left",$LaunchX, $LaunchY, 2)
	Sleep(100)
	MouseClick ("left",$LaunchX+50, $LaunchY, 2)
	Sleep(100)
	MouseMove($CenterX, $CenterY, 1)
And of course, you can just keep going with them too.

Code:
	MouseClick("left",$XColumn1, $YRow1, 1)
	MouseClick("left",$XMax, $YMax, 1)
	MouseClick("left",$XSkillPlus1, $YMax, 1)
	MouseClick("left",$XColumn2, $YRow1, 1)
	MouseClick("left",$XMax, $YMax, 1)
	MouseClick("left",$XSkillPlus1, $YMax, 1)
	MouseClick("left",$XColumn1, $YRow2, 1)
	MouseClick("left",$XMax, $YMax, 1)
	MouseClick("left",$XSkillPlus1, $YMax, 1)
	MouseClick("left",$XColumn2, $YRow2, 1)
	MouseClick("left",$XMax, $YMax, 1)
	MouseClick("left",$XSkillPlus1, $YMax, 1)
	MouseClick("left",$XColumn1, $YRow3, 1)
	MouseClick("left",$XMax, $YMax, 1)
	MouseClick("left",$XSkillPlus1, $YMax, 1)
	MouseClick("left",$XColumn2, $YRow3, 1)
	MouseClick("left",$XMax, $YMax, 1)
	MouseClick("left",$XSkillPlus1, $YMax, 1)
Quote Originally Posted by Zaiakunokami View Post
You have to tell the mouse everything. What to do ("left/right/middle click?") where to go (X, Y co-ordinates either in number or variable), how many and how fast .

Here's some sample code for you, straight from SinBotv2.4

Code:
    MouseClick ("left",$LaunchX, $LaunchY, 2)
    Sleep(100)
    MouseClick ("left",$LaunchX+50, $LaunchY, 2)
    Sleep(100)
    MouseMove($CenterX, $CenterY, 1)
And of course, you can just keep going with them too.

Code:
    MouseClick("left",$XColumn1, $YRow1, 1)
    MouseClick("left",$XMax, $YMax, 1)
    MouseClick("left",$XSkillPlus1, $YMax, 1)
    MouseClick("left",$XColumn2, $YRow1, 1)
    MouseClick("left",$XMax, $YMax, 1)
    MouseClick("left",$XSkillPlus1, $YMax, 1)
    MouseClick("left",$XColumn1, $YRow2, 1)
    MouseClick("left",$XMax, $YMax, 1)
    MouseClick("left",$XSkillPlus1, $YMax, 1)
    MouseClick("left",$XColumn2, $YRow2, 1)
    MouseClick("left",$XMax, $YMax, 1)
    MouseClick("left",$XSkillPlus1, $YMax, 1)
    MouseClick("left",$XColumn1, $YRow3, 1)
    MouseClick("left",$XMax, $YMax, 1)
    MouseClick("left",$XSkillPlus1, $YMax, 1)
    MouseClick("left",$XColumn2, $YRow3, 1)
    MouseClick("left",$XMax, $YMax, 1)
    MouseClick("left",$XSkillPlus1, $YMax, 1)


Actually:
Code:
MouseClick ( "button" [, x, y [, clicks [, speed ]]]  )

  
 Parameters
  button The button to click: "left", "right", "middle", "main", "menu",  "primary", "secondary".
  x, y [optional] The x/y coordinates to move the mouse to. If no x and y  coords are given, the current position is used (default). 
 clicks [optional] The number of times to click the mouse. Default is  1. 
 speed [optional] the speed to move the mouse in the range 1 (fastest) to  100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.
As you can see, everything is optional besides the first parameter.
Quote Originally Posted by DanK View Post




Actually:
Code:
MouseClick ( "button" [, x, y [, clicks [, speed ]]]  )

  
 Parameters
  button The button to click: "left", "right", "middle", "main", "menu",  "primary", "secondary".
  x, y [optional] The x/y coordinates to move the mouse to. If no x and y  coords are given, the current position is used (default). 
 clicks [optional] The number of times to click the mouse. Default is  1. 
 speed [optional] the speed to move the mouse in the range 1 (fastest) to  100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.
As you can see, everything is optional besides the first parameter.
While true, this will just click the mouse wherever it is currently located. This method will work, but you have to have a MouseMove in front of it, to get the mouse in the correct positioning.

I just find it easier to include the co-ords into the MouseClick itself. I know you do too after looking at your codes.

But yes, OP:
Code:
MouseMove($x,$y)
MouseClick("left")
Is just as valid as:
Code:
MouseClick("left',$x,$y)
Tried that
Quote Originally Posted by Zaiakunokami View Post
While true, this will just click the mouse wherever it is currently located. This method will work, but you have to have a MouseMove in front of it, to get the mouse in the correct positioning.

I just find it easier to include the co-ords into the MouseClick itself. I know you do too after looking at your codes.

But yes, OP:
Code:
MouseMove($x,$y)
MouseClick("left")
Is just as valid as:
Code:
MouseClick("left',$x,$y)
But I don't need it to click a certain position, I just want it to click to make an attack. Here's the source code:
Code:
Global $Pause
HotKeySet("{F10}", "Pause")
HotKeySet("{t}", "SuperSmash")


Func SuperSmash()
	While 1

		Sleep(1000)
		ControlClick("Vindictus", "", "", "left", 1)
		Sleep(1000)
		ControlClick("Vindictus", "", "", "left", 1)
		Sleep(1000)
		ControlClick("Vindictus", "", "", "right", 1)
		Sleep(1000)
		ControlClick("Vindictus", "", "", "right", 1)
		Sleep(1000)
		Send("{j}")
		Sleep(1000)
		Send("{q}")
		Sleep(100)
		Send("{F10}")
	WEnd
EndFunc

Func Pause()
	$Pause = NOT $Pause
	While $Pause
		Sleep(10)
		
	WEnd
	ToolTip("")
EndFunc
So whenever I press t it does the 2 shield hit combo and shield bash that is bound to j following to a hammer smash bound to q. In the end it should press F10 to pause the script until I press t again. (credits to dracconus for the original script)

Quote Originally Posted by DanK View Post




Actually:
Code:
MouseClick ( "button" [, x, y [, clicks [, speed ]]]  )

  
 Parameters
  button The button to click: "left", "right", "middle", "main", "menu",  "primary", "secondary".
  x, y [optional] The x/y coordinates to move the mouse to. If no x and y  coords are given, the current position is used (default). 
 clicks [optional] The number of times to click the mouse. Default is  1. 
 speed [optional] the speed to move the mouse in the range 1 (fastest) to  100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.
As you can see, everything is optional besides the first parameter.
Well I don't go asking questions without searching up online first and I found the page that described the mouseclick. Unfortunately it still doesn't work.
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?