Thanks for the clarification.
Landvermesser wrote:
When the script will start, shows (possibly, for short time) Main Window of AutoHotkey and then it is done HIDDEN.
Generally, I don't think a script's main window should ever be visible unless the process that launched it somehow forces that. When the main window is created, it is initially in a hidden state. There is nothing in the program that ever shows the window except later, when the user double clicks the tray menu, etc.
Quote:
However the compilled script of version 1.0.31.1 works normally at start from Windows Explorer; we receive phantoms in RKLauncher only at start from Quick Launch Panel and Start Panel of Windows.
A change involving ShowWindow() was made somewhere between 1.0.31.01 and the present. But it is likely that the change can't be undone without breaking existing scripts that rely on the current behavior.
Quote:
This effect can be probable bypassed, if to start a script not directly, but with help of other program written not in AutoHotkey language, or for example, with help of Batch file.
Try changing the script's shortcut to start minimized rather than normal. Within "properties of shortcut", there is a DropDownList containing Normal/Minimized/Maximized. If it doesn't work, try making the shortcut directly to AutoHotkey.exe instead but keep the "minimized" attribute. For example, make its target be "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Scripts\My Script.ahk"
Quote:
Generally, this is a problem of RKLauncher, not of AutoHotkey, but RKLauncher is relative populair...
Hopefully the above will fix it because I don't yet see a way to fix it in the program.
Thanks for all the details.