Code: Select all
v::
DllCall("mouse_event", "UInt", 0x01, "UInt", -50, "UInt", 0)
b::
DllCall("mouse_event", "UInt", 0x01, "UInt", 50, "UInt", 0)
t::
DllCall("mouse_event", "UInt", 0x01, "UInt", 0, "UInt", -50)
g::
DllCall("mouse_event", "UInt", 0x01, "UInt", 0, "UInt", 50)
I tried researching this issue, I found various ideas and solutions but nothing seemed to work. What ended up being most promising was using sendmode play, but that was for a previous version of the script before I was using dllcall. If you're wondering why I'm trying different approaches to the issue it's because I'm trying to write a script which, when ran in a first person game, can make me move my camera precisely and accurately in one direction without the human error possible when using the hand-controlled mouse. (So if there's another solution to this problem I'll gladly accept that instead too, I just want to solve this seemingly initially simple task.)
Who knows, maybe I'm in over my head here and this is way harder than I'm making it out to be, but either way I'm here to find out. Thanks for any help anybody has to offer, it's much appreciated!