Skip to content

Commit e96a771

Browse files
authored
Update AutoWall.au3
1 parent c99a276 commit e96a771

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/AutoWall.au3

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)