Skip to content

Commit

Permalink
Fix and update AutoHotkeyScript
Browse files Browse the repository at this point in the history
  • Loading branch information
ScheerleJo committed Jul 1, 2022
1 parent 1922290 commit 5377a7e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions scripts/AHK/execute.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ if (A_WDay > 5 || A_WDay == 1){
EnvAdd, date, 0, days
}
FormatTime, formatOut, %date%, dd.MM.yyyy
path := "./Thumbnail " formatOut ".png"

if (FileExist(path))
BlockInput, On
Run, cmd.exe, C:\Users\schee\Documents\Coding\Thumbnail_Generator,
Sleep, 200
SendInput, python ./scripts/gui.py
Send, {Enter}
WinWait, python
WinHide
BlockInput, Off
}
ExitApp, 1


path := RTrim(A_WorkingDir, "\scripts\AHK\")
path := path "r\thumbnails\Thumbnail " formatOut ".png"

if !FileExist(path) {
BlockInput, On
Run, cmd.exe, C:\Users\schee\Documents\Coding\Thumbnail_Generator,
Sleep, 200
SendInput, python ./scripts/gui.py
Send, {Enter}
WinWait, python
WinHide
BlockInput, Off
}

}
ExitApp, 1
Binary file modified scripts/AHK/execute.exe
Binary file not shown.

0 comments on commit 5377a7e

Please sign in to comment.