8000 [Feature request] Command-Line Support · Issue #239 · Merrit/nyrna · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature request] Command-Line Support #239
Open
@EternalTranquility1

Description

@EternalTranquility1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequest for a new feature or improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0