Arez Posted March 18, 2006 Share Posted March 18, 2006 (edited) 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 March 18, 2006 by Arez Link to comment Share on other sites More sharing options...
BigDod Posted March 18, 2006 Share Posted March 18, 2006 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"?ThanksFor the first questionYou can use the AutoIt Window Info Tool that comes with AutoItFor the secondSend("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 More sharing options...
theguy0000 Posted March 18, 2006 Share Posted March 18, 2006 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 More sharing options...
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