m3user wrote: ↑06 Dec 2024, 12:59
Hi, it seems that I have the same problem. I have prepared a simple script with many shortstrings and hotkeys for my colleagues and many of them report that the script stops working after some time. Based on the findings in this thread I replaced the script with a x64 version and it seems it works well - no stops anymore. The problem is that the script contains a Scintilla wrapper which doesn't work with x64 so I'm stuck with the x86 version.
Hi m3user, for a specific script, this might be better in a separate discussion thread. Just to be sure, "the script stops working after some time" is the same as some hotkeys not working after some time?
- Is it possible to solve it by avoiding some specific commands?
Worth a shot, the obvious way to narrow them down is by ... log analysis. Write to log all keyboard events from the user run scripts before they stop working. Logs could be large, see an old thread
here, and
RT History per Lexikos.
- If yes, how to determine the commands or parts of the script which may cause this so I can replace them with alternative code?
It might be better to use a 64 bit
SciTe4 wrapper in any case, like
Scintilla Complete for example, another option is to convert the wrapper to 64 bit, is it in LUA or something else?
- Is there a list of the conflicting software which cause this?
...
Who knows, by the sound of it's more like an internal Windows thing, or a
driver issue in user mode, a common occurrence for "not responding" is a previous key-up event not registered in the system, there's also the hooks issue discussed on the previous page. These ephemeral bugs are not easy to pin down, if it isn't the key events, something else might be off in the
WOW64 subsystem or directory, so consider things like
Wow64DisableWow64FsRedirection for the 32 bit calls as a workaround instead.