Skip to content

Commit a65e9d0

Browse files
authored
Update AutoWall.au3
1 parent 022b5d6 commit a65e9d0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/AutoWall.au3

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,17 @@ $winStart = GUICtrlCreateCheckbox("Set on windows startup", 8, 40, 137, 25)
2626
Opt("TrayMenuMode", 3)
2727
TrayCreateItem("Version: 1.6", -1, -1, 0)
2828
Opt("TrayOnEventMode", 1)
29-
GUISetState(@SW_SHOW)
3029
#endregion ### END Koda GUI section ###
3130

31+
If $CmdLine[0] > 0 Then
32+
GUICtrlSetData($inputPath, $CmdLine[1])
33+
setwallpaper()
34+
Exit
35+
Else
36+
GUISetState(@SW_SHOW)
37+
EndIf
38+
39+
3240
GUICtrlSendMsg($inputPath, $EM_SETCUEBANNER, False, "Browse and select video")
3341
GUICtrlSetState($winStart, $GUI_DISABLE)
3442

0 commit comments

Comments
 (0)