Skip to content

Commit

Permalink
Wait for control focus
Browse files Browse the repository at this point in the history
  • Loading branch information
t5mat committed Aug 8, 2022
1 parent a36c988 commit 692d317
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions night.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,11 @@ $f::TrySelectCurrentMenuItem(CurrentMenu, "Move to Pre-Fader") || TrySelectCurre

$q::
CloseCurrentMenuAndSend("{Enter}")
ControlSetText % "Edit1", % "-oo", A
ControlSend % "Edit1", % "{Enter}", A
if (!(Focus := WaitFocusedControl("^Edit1$", "A", 5, 1000))) {
return
}
ControlSetText % Focus, % "-oo", A
ControlSend % Focus, % "{Enter}", A
return

$r::TrySelectCurrentMenuItem(CurrentMenu, "Use Default Send Level")
Expand Down

0 comments on commit 692d317

Please sign in to comment.