To disable all keys including Pause, and mouse too, insert this at the beginning:
BlockInput 1
Or, convert the macro to function. Functions cannot be stopped using Pause. In Properties, select Function in the combo box where now is selected Macro. Insert spe -1 at the beginning of macro text.
spe -1, if used in a function that is called from a macro or function, inherits caller's speed (autodelay). If used in a function that is not called, sets autodelay that is specified in Options (initial autodelay for macros). Initial autodelay for functions is 0, and therefore the function may run too fast without spe. Of course you can use eg spe 100 instead.
I think it'd be a very bad thing to delete a system file, especially if the OS is using it. If it's just an application file you can use "Who lock me" (google for it) to determine what app is using the file, and kill the app. I'm sure there is a Win API you can use in QM to do the same thing. MSDN for it.
Matt
_hinst is global variable declared somewhere around function init which is in System folder. Do you have System folder in the list of macros? If yes, try to run init, and then run macro with BlockInput2. What results?
If not using System, insert this in BlockInput2, before if(WINNT):
dll kernel32 #GetModuleHandle $lpModuleName
int _hinst=GetModuleHandle(0)
I have deleted the system folders, had multiple since it was from 2.1.4 and everything is working just fine.
Quick question tho. Since this macro have a system folder, when I give the file to my friend, will she have 2 system folders also, she is also using 2.1.6.
In older QM versions, maybe in 2.1.4 too, it was possible to accidentally add two System folders when importing (don't remember how exactly). In QM 2.1.6 this will not happen. If System already exists in the list, it will not be imported.
Cool thank you very much. I am assuming it's the same with 2.1.7? If my file contains the System folder, it will not have 2 System folders are the file is Opened or Imported?