Code Monkey home page Code Monkey logo

Comments (4)

marcelser avatar marcelser commented on May 13, 2024 1

The single quotes are correct, I think it's github that what was doing some strange formatting to the log output. I enclosed it now in a code block what it really looks like.

here's the line in the config file.

on_usb_connect_execute = "'C:\\Program Files (x86)\\VB\\Voicemeeter\\voicemeeter8.exe' -R"

btw: I had to also escape the first backslash after the drive letter as well which you missed in your example.

from display-switch.

haimgel avatar haimgel commented on May 13, 2024

Oh this is a tricky one!

  1. The backslashes need to be escaped.
  2. The app needs to know that C:\Program Files (x86)\VB\Voicemeeter\voicemeeter8.exe (with the space inside) is one long path to the executable, but the -R is a separate parameter. The way to do it, is this:
on_usb_connect_execute = "'C:\Program Files (x86)\\VB\\Voicemeeter\\voicemeeter8.exe' -R"

Note the quoted path (single quotes because the whole parameter is double-quoted), and double backslashes.

Please let me know if this worked for you.

from display-switch.

marcelser avatar marcelser commented on May 13, 2024

Hi @haimgel ,

Yes the backslashes solved that program was not found but now I get an exit code when display-switch tries to run voicemeeter8

01:10:12 [ERROR] Error executing external command ''C:\Program Files (x86)\VB\Voicemeeter\voicemeeter8.exe' -R': Exited with status exit code: 0xffffffff

If this is an unsigned 32bit int then in decimal that represents -1 from what I've read.

So I executed voicemeeter in a cmd.exe command prompt (tried with and without admin rights). But in both cases this returned exit code 0 not -1 as in display-switch.

It's a bit hard to tell if voicemeeter was run and just returns some exit code for whatever reason or if it failed to run. The thing is that's restarting the audio engine in voicemeeter which is a background task without any visual indication that it worked. I will however find it out in a day or two if audio is always working when switching display or not.

from display-switch.

haimgel avatar haimgel commented on May 13, 2024

👍 ,from your log paste above, it's also possible that you misplaced the single quotes. Basically, they have to be around the binary file name, and not around the parameter.

from display-switch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.