; Right click lock (Rt mouse button will be kept held down with a long click -- short clicks allowed for short movements)To have this script execute automatically, you can create a batch file in the game directory
#IfWinActive, Dungeon Siege III
#MaxThreadsPerHotkey 3
; Force the keyboard hook to be used, which as a side-effect prevents the Send command from triggering hotkeys.
#UseHook
~Lbutton::HoldRMB = 0
~Rbutton::
TC := A_TickCount
KeyWait, RButton ;wait for right mouse button to be released
If HoldRMB || (A_TickCount-TC) < 350
{
HoldRMB = 0
Return
}
HoldRMB = 1
Loop {
Send {RButton down}
Sleep 40
if !HoldRMB
break
}
Send {RButton up}
HoldRMB = 0
return
start c:\progra~1\AutoHotkey\AutoHotkey.exe /r "ds3.ahk"and point the Dungeon Siege III play shortcut to it (instead of the executable)
start "Dungeon Siege III" "Dungeon Siege III.exe"
exit
