You've really made my game with this thread, and I've been using AHK and your script to mouselook for some months now, thanks!
My mouselook key is R, so you can imagine that constantly activating Click Down Right would be pretty damn annoying inside other windows. For me however, adding "#IfWinActive Star Wars™: The Old Republic™" does work, so maybe you should try and paste this.
Also, I wanted it so that it would be a toggle ànd still be able to use my R key while typing chat messages, so I've edited the script somewhat:
Thread, interrupt, 0
#IfWinActive Star Wars™: The Old Republic™
;
#NoEnv
toggle=0
SetMouseDelay,-1
return
r::
Thread, Priority, 2147483647
if toggle
Click Down Right
else
Click Up Right
Send r
toggle := 1 - toggle
return
;
#IfWinActive
When I type an R in chat, it will toggle mouselook at the same time, but that's unavoidable, I guess. For people that don't use a letter key, this won't be a problem.
Thanks again!