I'm currently having a hard time to see which precautions should be taken when using to maximize a script speed:
Code: Select all
I'm using it for example in creating a GUI that display a ListView with a list of files quite similar to the ListView Main example from the documentation:
https://autohotkey.com/docs/commands/Li ... m#Examples
To maximize speed looping through the files, checking some stuff, and displaying the ListView I used "SetBatchLines, -1" at the top.
However I have sometimes crashes when launching the GUI. The script becomes unresponsive before the GUI shows up and there is nothing I can do except killing the process via task manager.
It was mentioned loops but I couldn't understand in which loop you should introduce the sleep.
So could someone tell me if SetBatchLines, -1 is suceptible to crash AutoHotkey with some particular commands, especially in a loop?
And if yes what should be done to prevent it while maximizing speed? Which loops can be problematic?
As sensitive commands/functions inside the script I was wondering if they can be a problem with SetBatchLines,-1 ?: