Code: Select all
SetControlDelay, -1 SetWinDelay, -1 SetMouseDelay, -1 SetKeyDelay, -1
It's not that my script needs to be faster(it works fairly fast). I'm just gathering some methods to improve it's speed. Thx for the tips!trismarck wrote:Please see this thread. The main command that improves the speed is SetBatchLines, -1.
In general, besides minimizing delays, one would tweak the source code directly (by i.e. using expressions whenever possible) to speed things up. If there are two lines of code that perform the same action, those could be profiled to see, which one is faster. Perhaps if you posted the code that needs speed improvement, someone could tweak it / see why the code is slow.
Will ListLines Off and KeyHistory also improve reilability on compiled scripts?MasterFocus wrote:In addition to SetBatchLines, -1, #NoEnv, #KeyHistory 0 and ListLines, Off already mentioned,
you can also use Process, Priority,, High to let the script's process have a high CPU priority.