nyrna icon indicating copy to clipboard operation
nyrna copied to clipboard

[Feature request] Command-Line Support

Open staaandup opened this issue 11 months ago • 1 comments

Love the app! It’s super handy. Would it be possible to add command-line support, like:

nyrna.exe Suspend "app.exe"
nyrna.exe Unsuspend "app.exe"

This would be perfect for my ahk script, which suspends Brave when Left 4 Dead 2 is active and resumes it afterward:

global braveState := ""  ; Tracks Brave’s state

SetTimer, CheckBraveWindow, 200
return

CheckBraveWindow:
    if (!WinExist("ahk_exe brave.exe")) { return }
    if (WinActive("ahk_exe left4dead2.exe")) {
        if (braveState != "suspended") {
            Run, %comspec% /c nyrna.exe Suspend "brave.exe"
            braveState := "suspended"
        }
    } else {
        if (braveState != "resumed") {
            Run, %comspec% /c nyrna.exe Unsuspend "brave.exe"
            braveState := "resumed"
        }
    }
return

staaandup avatar Jan 31 '25 06:01 staaandup

Thanks for the suggestion! I will give it some thought. :)

Merrit avatar Jan 31 '25 18:01 Merrit