Fix version 2.0
I was able to change the script so that it triggered only for BG3. It works very well now. Only problem is that it works only for dx11 version. If you use Vulkan, you have to replace in the script bg3_dx11.exe with bg3.exe. I tried to do it compatible with both exes and I was not successful.
How to use it:
1. Install app AutoHotkey
2. Make a new text file, copy there the script and rename the extension to ahk (if you use Vulkan, replace bg3_dx11.exe with bg3.exe)
3. Run the file
If the script is running, you can see it near the clock with other icons of apps. Right click on it and Exit and you will close the script.
Here is the script:
WinGetPos, X, Y, Width, Height, A
#Persistent
SetTimer, WatchCursor, 10
return
WatchCursor:
MouseGetPos, MouseX, MouseY
WinWaitActive, ahk_exe bg3_dx11.exe
{
if (MouseY >= Y + Height - 1)
{
SendInput, {s}
}
if (MouseY <= 0)
{
SendInput, {w}
}
if (MouseX <= 0)
{
SendInput, {a}
}
if (MouseX >= A_ScreenWidth - 1)
{
SendInput, {d}
}
return
}
Last edited by Pilda; 21/08/23 03:33 PM.