Sign in to follow this  
Followers 0
tom13

MouseClickDrag

4 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



sounds like this

Share this post


Link to post
Share on other sites

sounds like this

Thanks, seems like it yes :whistle:

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

Share this post


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

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