Jump to content

Getting Correct Mouse Coordinates In A Game


Arez
 Share

Recommended Posts

How can you get mouse coordinates when you are in a game?

When I looked at the "WinGetState" in the helpfile I was completely confused.

Can someone tell me of a way to do this?

Also, how would you make the keyboard press the letter "M"?

Thanks

Edited by Arez
Link to comment
Share on other sites

How can you get mouse coordinates when you are in a game?

When I looked at the "WinGetState" in the helpfile I was completely confused.

Can someone tell me of a way to do this?

Also, how would you make the keyboard press the letter "M"?

Thanks

For the first question

You can use the AutoIt Window Info Tool that comes with AutoIt

For the second

Send("m")


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Get mouse Coords:

$array = MouseGetPos()
$x = $array[0]
$y = $array[1]

http://www.autoitscript.com/autoit3/docs/f...MouseGetPos.htm

------

Press "M" key:

Send("M")

http://www.autoitscript.com/autoit3/docs/functions/Send.htm

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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