fataldelay Posted January 17, 2008 Share Posted January 17, 2008 Is there a way to detect if a cursor changes? more than likely i will have it trigger off a function Link to comment Share on other sites More sharing options...
Sardith Posted January 17, 2008 Share Posted January 17, 2008 (edited) Look at MouseGetCursor() Example: ;Base line $Cursor = MouseGetCursor() Do MouseGetCursor() Until MouseGetCursor() <> $Cursor MsgBox("", "Cursor", "Cursor change detected." & @CRLF & "ID: " & $Cursor) Edited January 17, 2008 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
fataldelay Posted January 17, 2008 Author Share Posted January 17, 2008 Thanks for the response... for some reason it will not detect that in a game.. course the game cursor isnt like its a normal windows white cursor either wonder if that has anything to do with it Link to comment Share on other sites More sharing options...
fataldelay Posted January 17, 2008 Author Share Posted January 17, 2008 Thanks for the response... for some reason it will not detect that in a game.. course the game cursor isnt like its a normal windows white cursor either wonder if that has anything to do with itok this seems to work for some reason in game....Dim $initialCursorID = MouseGetCursor(); Initiate Test here...Dim $start = TimerInit()While MouseGetCursor() <> $initialCursorID Sleep( 10 )WendMsgBox("", "Cursor", "Cursor change detected." & @CRLF & "ID: " & $initialCursorID)now how would i move the mouse from x,y coordinates 455,581 to 757,691 until the cursor changes the minute it changes i want it to stop....im sure i have to tell it to mouse move but im a bit unsure on how to make it stop as soon as the cursor changes 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