Endrju > 2024-12-10 05:43
ProcessClose "GoodSync.exe"
Sleep 500
Run "*RunAs " A_ProgramFiles "\Siber Systems\GoodSync\GoodSync.exe"
RunAs ; Reset to normal behavior.
ProcessClose "GoodSync.exe"
Sleep 500
Run "*RunAs " A_ProgramFiles "\Siber Systems\GoodSync\GoodSync.exe",, "Min"
RunAs ; Reset to normal behavior.
dr Winchell > 2024-12-10 07:09
(2024-12-10 05:43)Endrju Wrote: I have a simple AHK script that QAP runs from the favorites menu. The problem is that QAP always runs the program (GoodSync) minimised to Tray. This is strange to me because when I click on the script shortcut e.g. on the desktop, the program starts as it should, i.e. with the program window open.
Here is this script
Code:ProcessClose "GoodSync.exe"
Sleep 500
Run "*RunAs " A_ProgramFiles "\Siber Systems\GoodSync\GoodSync.exe"
RunAs ; Reset to normal behavior.
I do not use the "Min" switch in the Run option
Code:ProcessClose "GoodSync.exe"
Sleep 500
Run "*RunAs " A_ProgramFiles "\Siber Systems\GoodSync\GoodSync.exe",, "Min"
RunAs ; Reset to normal behavior.
I don't know what the problem could be
Endrju > 2024-12-10 07:47
Jean Lalonde > 2024-12-10 07:49
Endrju > 2024-12-10 08:12
(2024-12-10 07:49)Jean Lalonde Wrote: In your shortcut, is there a "Start In" folder? If yes, set it in QAP favorite "Advanced Favorites".
Quote:{ahk}\programs\GoodSync\GoodSync RunAs2.exe
Quote:{ahk}\programs\GoodSync\GoodSync RunAs - no Min.exe
Jean Lalonde > 2024-12-10 09:28
"{ahk}\programs\GoodSync\GoodSync RunAs - no Min.exe"
Jean Lalonde > 2024-12-10 09:32
Endrju > 2024-12-10 09:48
(2024-12-10 09:32)Jean Lalonde Wrote: Please check if you see the same behavior by launching your script (with and without hyphen) using the Windows Run dialog box (Win + R)?
Quote:"{ahk}\programs\GoodSync\GoodSync RunAs - no Min.exe"
Jean Lalonde > 2024-12-10 11:52