Jump to content

MouseClickDrag


Recommended Posts

Hi,

In a game I can change my view (angle) by dragging the mouse with the right mouse button. Goes like this:

1. Right mouse button down

2. Move the mouse to the right

3. Right mouse button up

This should be the same:

Sleep(5000)

;$size = WinGetClientSize("World of Warcraft")
;$width = $size[0]
;$height = $size[1]
;$Wmid = $width / 100 * 50
;$Hmid = $height / 100 * 50
$pos = MouseGetPos()
$Xpos = $pos[0]
$Ypos = $pos[1]

MouseClickDrag("right", $Xpos, $Ypos, $Xpos + 50, $Ypos)
;MouseClickDrag ( "button", x1, y1, x2, y2 [, speed] )

Although, when I do it manually the view and my character changes smooth and a bit to the right but when I use the script it flips the whole view the other way around and the only thing I see is air...

anyone has an explenation for this?

Edited by tom13
Link to comment
Share on other sites

Thanks, seems like it yes :whistle:

Too bad the OP didn't find a 100% working solution yet

I don't think you were reading carefully because they found a 100% working solution to your mouse problem.

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...