So I can launch my script on windows startup with this :
Code: Select all
FileCreateShortcut %A_ScriptFullPath%,%A_Startup%\%A_ScriptName%.lnk
Sorry for my poor english
Thanks.
Code: Select all
FileCreateShortcut %A_ScriptFullPath%,%A_Startup%\%A_ScriptName%.lnk
Code: Select all
menu, tray, add, maximize, max
menu, tray, default, maximize
gui, add, text, w100, some text
gui, show, minimize
return
max:
Gui, restore
This is what I need to do but from the script, so there is a way to set Run : Minimized from Autohotkey ?need4speed wrote: ↑28 Jul 2020, 14:10not sure what you're asking for.
you can simply create two shortcuts; then RMB select Properties, change "Run" to Minimized, the other set to "Normal Window",
drag and drop one shortcut to the startup folder and you're done.
In this way my script always run minimized even when double-click on my script icon.eL Tux wrote: ↑28 Jul 2020, 13:18Hi, my script have a GUI and I want to launch my script on windows startup but minimized.
So I can launch my script on windows startup with this :
But how to launch my script minimized in tray on startup and still launch my script not minimized when double-click on my script icon ?Code: Select all
FileCreateShortcut %A_ScriptFullPath%,%A_Startup%\%A_ScriptName%.lnk
Sorry for my poor english
Thanks.
Code: Select all
#NoEnv
SetWorkingDir %A_ScriptDir%
SetWinDelay, -1
Run, %A_ScriptDir%\MyScript.ahk,,, pid
WinWait, ahk_pid %pid%
WinMinimize
Code: Select all
FileCreateShortcut %A_ScriptDir%\RunMini.ahk,%A_Startup%\%A_ScriptName%.lnk
Users browsing this forum: Descolada, Google [Bot] and 190 guests