Edited
Re: Delays when calling the function the 1st time??
Run a dummy call to the OCR routine when the script first starts up and then again every so often so that it doesn't spend the time to initialize itself or whatever it's doing when you actually need it. You can have a routine executed regularly by using SetTimer.
Re: Delays when calling the function the 1st time??
Edited
Last edited by fivefive on 12 Mar 2023, 10:41, edited 1 time in total.
Re: Delays when calling the function the 1st time??
If you need the clipboard not to be touched, then that may be an issue. You may see if you can produce a subset of the OCR routine that you could call that leaves out the part of assigning new content to the clipboard but still keeps the initialization fresh. I don't have time to dig into that myself to know if it's feasible or not.
Re: Delays when calling the function the 1st time??
Edited
Last edited by fivefive on 12 Mar 2023, 10:41, edited 1 time in total.
Re: Delays when calling the function the 1st time??
I like assigning a null string using the expression assignment operator, like this:
The versions you asked about also work, but I prefer the above as it doesn't look like an unfinished line of code.
Code: Select all
Clipboard := ""
The versions you asked about also work, but I prefer the above as it doesn't look like an unfinished line of code.
Re: Delays when calling the function the 1st time??
Code: Select all
Clipboard =
Code: Select all
Clipboard := ""
(Sorry @boiler, we posted at the same time.)