Compare commits

...

2 Commits

  1. 5
      helpers/WinGetTitle.ahk
  2. 9
      lib/Wrapper.ahk
  3. 3
      src/Stardew Valley.ahk

5
helpers/WinGetTitle.ahk

@ -0,0 +1,5 @@
#Requires AutoHotkey v2.0
F12::{
MsgBox "The active window is '" WinGetTitle("A") "'."
}

9
lib/Wrapper.ahk

@ -8,9 +8,14 @@ CheckWinExist(Window) {
}
}
; TitleMatchMode can be set, but defaults to 3 if not set
if (!IsSet(WrapperTitleMatchMode)) {
WrapperTitleMatchMode:=3
}
Run WrapperPath
SetTitleMatchMode 3
WinWait WrapperWindow,,600
SetTitleMatchMode WrapperTitleMatchMode
WinWait WrapperWindow,,300
; Check if window exists once per second
SetTimer CheckWinExist.Bind(WrapperWindow), 1000

3
src/Stardew Valley.ahk

@ -8,7 +8,8 @@
; Make this a wrapper script
WrapperPath:="steam://rungameid/413150"
WrapperWindow:="Stardew Valley"
WrapperTitleMatchMode:=2
WrapperWindow:="Stardew Valley 1.6.3 - running SMAPI"
#Include "../lib/Wrapper.ahk"
;

Loading…
Cancel
Save