Does anyone know of a reliable way to rotate the camera by simulating mouse events? Hacking into the game process is out of question.
I tried using SendInput, but the game handles rotations in a special manner (it locks the cursor in the middle of the screen), so it doesn't work directly. Using both SendInput and sending a WM_MOUSEMOVE seems to work, but the sensitivity seems inconsistent this way - sometimes it would turn 180 degrees, sometimes only 90, when I move the mouse for the same total amount. Maybe I'm sending a second command before it processed the first one, which causes it to be lost, I'm not sure.
I kinda have a temporary solution by making a macro to display a large bar in-game that reflects the players GetPlayerFacing, and the bot scans the bar to determine whether it needs to keep rotating the camera - but that's not very elegant.