Problem
Currently the script can send keystrokes to any program that is in focus, which results in unwanted effects being applied. For example, if a user is browsing the internet while searching for an invasion, the keystrokes meant to use the invasion fingers will be sent to the browser instead.
Solution
Find a way to send keystrokes only to Elden Ring. Additionally, hotkeys meant for AutoInvasionFinger (such as pressing L to cancel invasions) should only work if Elden Ring is in focus, otherwise use that key as normal keystrokes for programs other than Elden Ring.
Problem
Currently the script can send keystrokes to any program that is in focus, which results in unwanted effects being applied. For example, if a user is browsing the internet while searching for an invasion, the keystrokes meant to use the invasion fingers will be sent to the browser instead.
Solution
Find a way to send keystrokes only to Elden Ring. Additionally, hotkeys meant for AutoInvasionFinger (such as pressing L to cancel invasions) should only work if Elden Ring is in focus, otherwise use that key as normal keystrokes for programs other than Elden Ring.