File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,8 +53,7 @@ Func onWinStart()
5353 FileDelete (@AppDataDir & " \Microsoft\Windows\Start Menu\Programs\Startup\livewallpaper.bat" )
5454 $file = FileOpen (@AppDataDir & " \Microsoft\Windows\Start Menu\Programs\Startup\livewallpaper.bat" , 1 )
5555 $inputUdf = GUICtrlRead ($inputPath )
56- InetGetSize ($inputUdf )
57- If @error Then
56+ If _WinAPI_UrlIs ($inputUdf )== 0 Then
5857 FileWrite ($file , " @echo off" & @CRLF )
5958 FileWrite ($file , " cd " & ' "' & @WorkingDir & " \mpv\" & ' "' & @CRLF )
6059 FileWrite ($file , ' "' & @WorkingDir & " \weebp\wp.exe" & ' "' & " run mpv " & ' "' & GUICtrlRead ($inputPath ) & ' "' & " --loop=inf --player-operation-mode=pseudo-gui --force-window=yes --no-audio" & @CRLF )
@@ -83,7 +82,7 @@ Func setwallpaper()
8382 $webview = @WorkingDir & " \tools\GoWebView.exe"
8483
8584 $inputUdf = GUICtrlRead ($inputPath )
86- If _WinAPI_UrlIs ($inputUdf )== 1 Then
85+ If _WinAPI_UrlIs ($inputUdf )== 0 Then
8786 FileChangeDir (@WorkingDir & " \mpv\" )
8887 Run ($weebp & " run mpv " & ' "' & GUICtrlRead ($inputPath ) & ' "' & " --loop=inf --player-operation-mode=pseudo-gui --force-window=yes --no-audio" )
8988 Run ($weebp & " add --wait --fullscreen --class mpv" )
You can’t perform that action at this time.
0 commit comments