You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.
I don't know where exactly the problem lies, but often I got such problem:
highlight X item
X gets highlighted
highlight Y item
Y gets highlighted
highlight Z item
X (sic!) gets highlighted
There's some code which is described as "This prevents the highlighting function to fill search fields with data from previous item parsings", but that apparently doesn't work.
While I didn't find exact place where it's happening, I'm sure it's because the variable is global - the clipboard is replaced in 3rd point, so script somehow keeps info from 1st (and somewhere in between parsing/getting clipboard fails, so the old data is not replaced by new one). As this variable (parsed data/clipobard contents) is needed only to process it and then paste it into box, it should end its life when the function routine ends - there's no reason to pollute mainspace. As it's global, it persists and causes that problem.
The half-assed solution which would make use of global variable is just to "destroy" it (in fact impossible in AHK, so either empty contents [foo :=] or unallocate it [VarSetCapacity(foo,0)]) before use - this way even if other functions interfere, then it would be clean with every routine execution.
The text was updated successfully, but these errors were encountered:
I don't know where exactly the problem lies, but often I got such problem:
There's some code which is described as "This prevents the highlighting function to fill search fields with data from previous item parsings", but that apparently doesn't work.
While I didn't find exact place where it's happening, I'm sure it's because the variable is global - the clipboard is replaced in 3rd point, so script somehow keeps info from 1st (and somewhere in between parsing/getting clipboard fails, so the old data is not replaced by new one). As this variable (parsed data/clipobard contents) is needed only to process it and then paste it into box, it should end its life when the function routine ends - there's no reason to pollute mainspace. As it's global, it persists and causes that problem.
The half-assed solution which would make use of global variable is just to "destroy" it (in fact impossible in AHK, so either empty contents [
foo :=
] or unallocate it [VarSetCapacity(foo,0)
]) before use - this way even if other functions interfere, then it would be clean with every routine execution.The text was updated successfully, but these errors were encountered: