

But i post this successfully here because, the Mac has less bots available, none that i have been able to research, vs the PC which i have found many. So beware of what you are doing, as it may break your user agreement for many MMPG. I have successfully done this for a popular game, although i cannot mention the game as it breaks the user agreements which all these type of games have against "bots". This is great for games that force you to play to harvest minerals, commodities or whatever gives you money to advance in the game. Basically it will play for you as you are afk. Well what you are try to build is "bot" or "robot" which basically sends commands in an orderly fashion to a game. The game doesn't accept any input unless I move it up/down (and the pointer then changes). Interestingly enough, I can move the mouse fine (CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, clickPt) ), I just can't send any clicks :/Įdit: Here is what is strange, once I move the mouse using CGDisplayMoveCursorToPoint, I actually have to physically move my mouse up or down a hair before I can even click, which is odd. Location.y = 509 customEvent = [NSEvent mouseEventWithType: NSLeftMouseDown Here is another example of what I'm trying to send: My guess is that it's because I'm trying to send a click event to a game window (openGL), vs.
:max_bytes(150000):strip_icc()/RightClickMousePreference-56a5d5323df78cf7728a100b-5c8284d346e0fb000133649d.jpg)
I was hoping someone may be able to help me think of this differently, or realize what I'm missing. So I've been trying to use CGPostMouseEvent, and CGEventPostToPSN to send a mouse click to a mac game, and unfortunately have been very unsuccessful.
