Toufool/AutoSplit

Hotkey emulation accidentally modifies AutoSplit fields

Closed this issue · 3 comments

Describe the bug

Am I correct in my understanding that AutoSplit simulates a press of hotkeys to send them to LiveSplit?

When my hotkeys were set to numpad numbers, AutoSplit appeared to be typing in its own x, y, width and height fields when it detected splits. This not only messed the configuration, but appeared to cause a feedback loop (the messed up config meant it detected false positives, and kept typing more numbers in its own fields, eventually crashing.)

It's not impossible I'm completely misunderstanding the program's behavior and the cause of the bug I encountered is something else, but it was definitely strange. If someone can clarify my uncertainties, I could perhaps provide better explanations to help reproduce the bug.

To Reproduce

  • Setup LiveSplit integration.
  • Set all hotkeys in AutoSplit to numpad numbers.
  • Place focus in one of the fields.
  • Click the button to skip or undo a split.

Expected behavior

AutoSplit should ignore its own emulated keypresses somehow.

Traceback or Crash Report
Windows Event Log entry:

Faulting application name: AutoSplit.exe, version: 0.0.0.0, time stamp: 0x64baf154
Faulting module name: Qt6Core.dll, version: 6.5.1.0, time stamp: 0x6469b02c
Exception code: 0xc0000005
Fault offset: 0x0000000000080f0b
Faulting process ID: 0x2134
Faulting application start time: 0x01d9c8b74c563f88
Faulting application path: X:\programs\AutoSplit\AutoSplit.exe
Faulting module path: C:\Users\domino\AppData\Local\Temp\_MEI223762\PySide6\Qt6Core.dll
Report ID: 85a04ef2-4b5f-46f3-ba2d-992f47a30f7c
Faulting package full name: 
Faulting package-relative application ID: 

Version (please complete the following information):

  • OS: [e.g. Windows 10.0.19045]
  • AutoSplit: [e.g. v2.0.0]

AutoSplit Profile and Split Images

Additional context

Now that I managed to get AutoSplit to detect all the splits in the game I'm running from start to finish while LiveSplit is turned off, I've tested integration again and I realize I may have misunderstood how communication between LiveSplit and AutoSplit works. I've edited my issue consequently.

Avasam commented

You seem correct in your understanding without the LiveSplit integration. I think this is a duplicate of #187 .

@Avasam Ah, I must have missed that issue because I searched for an open bug and not a feature request. Do you mean that without the LiveSplit integration DLL this is how the programs communicate, but with the DLL they can just communicate directly? In any case, feel free to close this issue as duplicate.

EDIT: I found workarounds to my other issues and managed to get the LiveSplit integration working. Controlling LiveSplit manually was a pain since I'm running a game in a Windows98 virtual machine which captures my keyboard, so AutoSplit is going to save me a lot of trouble. It's rough around the edge but once you get it working, it's pretty great :)