I have this script from Flipeador in ahk forum.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#numpad5::
Loop, Files, O:\pantallazos\%A_YYYY%\%A_MM%.%A_YYYY%\*.*, FD
LF := A_LoopFileName
OpenFolderAndSelectItems("O:\pantallazos\" . A_YYYY . "\" . A_MM . "." . A_YYYY, LF)
OpenFolderAndSelectItems(DirName, Files, Flags := 0)
{
Local Items, Each, FileName, ITEMLIST, PIDL, R
DirName := StrLen(DirName) < 4 ? SubStr(DirName, 1, 1) . ":" : RTrim(DirName, "\")
Items := []
For Each, FileName In (IsObject(Files) ? Files : [Files])
If (FileExist(DirName . "\" . FileName))
Items.Push(FileName)
If (!Items.MaxIndex())
Return (-2)
VarSetCapacity(ITEMLIST, Items.MaxIndex() * A_PtrSize)
For Each, FileName In Items
{
DllCall("Shell32.dll\SHParseDisplayName", "Str", DirName . "\" . FileName, "Ptr", 0, "PtrP", PIDL, "UInt", 0, "Ptr", 0)
NumPut(PIDL, ITEMLIST, (A_Index - 1) * A_PtrSize, "Ptr")
}
DllCall("Ole32.dll\CoInitializeEx", "Ptr", 0, "UInt", 0)
DllCall("Shell32.dll\SHParseDisplayName", "Ptr", &DirName, "Ptr", 0, "PtrP", PIDL, "UInt", 0, "Ptr", 0)
R := DllCall("Shell32.dll\SHOpenFolderAndSelectItems", "Ptr", PIDL, "UInt", Items.MaxIndex(), "Ptr", &ITEMLIST, "UInt", Flags)
DllCall("Ole32.dll\CoTaskMemFree", "Ptr", PIDL)
Loop (Items.MaxIndex())
DllCall("Ole32.dll\CoTaskMemFree", "Ptr", NumGet(ITEMLIST, (A_Index - 1) * A_PtrSize, "Ptr"))
DllCall("Ole32.dll\CoUninitialize")
Return (R ? -1 : 0)
} ;https://msdn.microsoft.com/en-us/library/windows/desktop/bb762232(v=vs.85).aspx
Goes well as a ahk file, but after compiling give me errors. I have decided to update ahk.
I don't see a clear method to inhabilitate a script in PE without deleting, so limited the script only running Virtualbox. Seems works fine and have no effects.
If i can't compile for any reason i wll charge the ahk in startup delayer or propose in the startup folder.
The main reason for this crisis may be solved, but I will experiment with FARR and LaunchBarCommander until total solution.
Best Regards