U2mad Posted August 23, 2008 Share Posted August 23, 2008 I'm a bit new at autoit so I'm trying to figure out if this is even possible. Is it possible to have Mouse events without capturing the mouse? I want to be able to have a game running in windowed mode off to the side or ideally even in the background, but still have autoit making mouse clicks in that window without grabbing the mouse and interrupting what I'm doing. Is this a possibility or is it outside the realm of what autoit can do? Link to comment Share on other sites More sharing options...
Szhlopp Posted August 23, 2008 Share Posted August 23, 2008 I'm a bit new at autoit so I'm trying to figure out if this is even possible. Is it possible to have Mouse events without capturing the mouse? I want to be able to have a game running in windowed mode off to the side or ideally even in the background, but still have autoit making mouse clicks in that window without grabbing the mouse and interrupting what I'm doing. Is this a possibility or is it outside the realm of what autoit can do? Don't believe it's possible to have a 'mouse clone'. AutoIt would have to use your mouse to click something. The fastest way you could do this however is this: $aPos = MouseGetPos() MouseClick("Primary", X, Y, 1, 0) ; 1 click, instant move MouseMove($aPos[0], $aPos[1], 0) ; Move the mouse back to it's original position RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 23, 2008 Share Posted August 23, 2008 @U2mad See ControlClick() in the helpfile for clicking without moving the mouse. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
U2mad Posted August 23, 2008 Author Share Posted August 23, 2008 Thank you, for the replies, I think that will set me in the right direction 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