so i am working on a small private bot for classic which runs great so far.
doing all my stuff "external" in C#
recently i was about to change my way of sending inputs (because i thougt i could do better), starting with mouse input.
currently i use PostMessage if the game is in background, and mouse_event if the game is in foreground.
(i still wonder why PostMessage wont work in foreground... maybe my code is just bad at this point, one reason more to rework it)
the problem is that i have to move the cursor with Cursor.Position, send the click, wait around 25ms (or wow wont recognice it) and fianlly move it back to where it was.
moving back is optional (and so the sleep) but i am doing other things on this machine simultaniously. so, this is kinda annoying
blocking the input for this time would not help much
on my journey on finding another solution i could not find anything useful (besides things like ring0 driver) on stackoverflow i've read somethings between the lines like "it depends on the target application if the cursor has to be on position"
so, my question is, is there any other possibility to send mouse clicks to wow? (while staying external, no mem writing)
any advise would be helpfull!
edit: goal is to send the clicks while wow is in background