Re: [2008] Mouse Recorder
Re: [2008] Mouse Recorder
Well for one, your GetAsyncKeyState is wrong: GetAsyncKeyState(1) returns the left mouse button and GetAsyncKeyState(2) returns the right button.
Als, to make a click, you might need to send MOUSEEVENTF_(LEFT/RIGHT)UP right after you send down?
Re: [2008] Mouse Recorder
Quote:
GetAsyncKeyState(1) returns the left mouse button and GetAsyncKeyState(2) returns the right button
ok im kind of new at this... could you show me a quick example. ill rep ++ u :)
Re: [2008] Mouse Recorder
Well, right now you have GetAsyncKeyState(MOUSEEVENTF_LEFTDOWN). Change that to GetAsyncKeyState(1). Then change GetAsyncKeyState(MOUSEEVENTF_RIGHTDOWN) To GetAsyncKeyState(2).
Re: [2008] Mouse Recorder
its still not working with me... any other suggestions?
Re: [2008] Mouse Recorder
To simulate a proper mouse click, I think you'd want to add mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0) right after mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0), and same thing with the right mouse button. If that doesn't work, you could try adding a 50 - 150 millisecond pause between the two calls.