OpenTabletDriver / opentabletdriver.github.io

The next version of OpenTabletDriver.Web
http://opentabletdriver.net/
GNU Affero General Public License v3.0
1 stars 5 forks source link

Add how to hide OTD Daemon window on Windows #112

Open gonX opened 2 years ago

gonX commented 2 years ago

See OpenTabletDriver/OpenTabletDriver#1165

We could probably direct people directly to the commit, ie. 67d4fff552721c05c835fdfbe28599878d03f583:OpenTabletDriver.Daemon/OpenTabletDriver.No.Window.vbs

AbstractQbit commented 2 years ago

Alternatively, this could be done with a powershell command: Start-Process ./OpenTabletDriver.Daemon.exe -WindowStyle Hidden

AbstractQbit commented 2 years ago

Or maybe a toggle script might be more useful:

$daemon = Get-Process OpenTabletDriver.Daemon -ErrorAction SilentlyContinue
if ($daemon) {
  $daemon | Stop-Process
  Sleep 1
  if (!$daemon.HasExited) {
    $daemon | Stop-Process -Force
  }
} else {
  Start-Process ./OpenTabletDriver.Daemon.exe -WindowStyle Hidden
}