SetVol not working

Here you are welcome to report any SetVol bugs you may have encountered

if you know of a workaround, it would be great if you would mention that too
Post Reply
demonasgodz
Posts: 6
Joined: Sun Jun 30, 2019 9:07 am

SetVol not working

Post by demonasgodz »

Changed to a new pc and couldnt get setvol to work with P2R

Tried installing setvol and p2r, tried giving it administrator as well
P2r recognizes the command but the volume doesnt change

i tried installing netframe 4.6.2
https://dotnet.microsoft.com/en-us/down ... ork/net462

when i try to double click setvol itself, the command prompt open and closes immediately
win10 pro
Attachments
setvol p2r card
setvol p2r card
setvol.png (19.56 KiB) Viewed 15633 times
RobLatour
Site Admin
Posts: 1023
Joined: Mon Feb 19, 2018 11:43 am

Re: SetVol not working

Post by RobLatour »

Hi,

SetVol is a command line app, so if you double click on it - yes, you will see it load for a moment and then be done.

A command line app can be run from a batch / script file or from the command line.

Let's get it working from the command line first.

To do this, please press the "Windows" and "R" keys together at the same time. This will pop-up a window. In that window, please enter

cmd

This will open up the Windows command window.

You now need to change the active directory to where SetVol is stored.

If you put it in the same directory as Push2Run, then the directory for that is likely:
c:\program files\push2run

As an aside, that is likely the issue with your Push2Run card that you included a screenshot of. According to it, you are trying to open:
c:\program files (86)\push2run\push2run.exe
in a directory of
c:\program files (86)\push2run

and it likely should be:

c:\program files\push2run\push2run.exe
in a directory of
c:\program files\push2run

unless you have done something special.

In any case, back to the command prompt ...
(for the following, I am assuming you save the SetVol.exe program in c:\program files\push2run\ and as such, please ...)

at the > prompt, enter:
c:
cd \
cd \program files
cd \push2run

you should see:
c:\Program Files\Push2Run>

so assuming SetVol is in that directory, please enter:

setvol ?
(which will show you the help)

or

setvol 50
(as an example to set your volume level to 50)


Please let me know if this helped.
demonasgodz
Posts: 6
Joined: Sun Jun 30, 2019 9:07 am

Re: SetVol not working

Post by demonasgodz »

Thanks for the quick reply, i manage to load it on cmd and it works fine when i type in the command
But on the p2r card it doesn't work..

i tried changing the directory as well, so i guess there something wrong with my p2r card instead
Attachments
cmd works
cmd works
setvol2.png (8.24 KiB) Viewed 15629 times
RobLatour
Site Admin
Posts: 1023
Joined: Mon Feb 19, 2018 11:43 am

Re: SetVol not working

Post by RobLatour »

Great, we are making progress!

I assume in the main window your card is turned on.

What happens when, from the main window, you right-click on it and select 'Run'?

Also, you can look in your session log to ensure that what you are saying and what google is sending are as expected. For example, are you saying

Ok Google, tell my computer to change volume 55

and not something like

Ok Google, tell my computer to change the volume to 55
(which you don't have an entry for).

Also, just so that you are aware you can have the Push2Run card listen for

* volume $
* volume to $

which will catch more expressions.
demonasgodz
Posts: 6
Joined: Sun Jun 30, 2019 9:07 am

Re: SetVol not working

Post by demonasgodz »

omg it works when I right click the card and click on 'RUN'. I managed to change it to 70 by typing it in the popup box
This is so weird because it doesn't work when i speak to Google.

And wow I guess i missed that you could wildcard with *, anyway I've tried changing the listen for but it still doesn't work although it says it run successfully. Do you know what else could be the problem?
Attachments
cvol20.png
cvol20.png (61.49 KiB) Viewed 15624 times
RobLatour
Site Admin
Posts: 1023
Joined: Mon Feb 19, 2018 11:43 am

Re: SetVol not working

Post by RobLatour »

So take a look in your Session log, there should be a clue in it as to why it is not working.

To see the session log, just go to the main window and click View - Session log.

If it isn't evident to you, please post the contents of your session log after you have given a command to Google.
demonasgodz
Posts: 6
Joined: Sun Jun 30, 2019 9:07 am

Re: SetVol not working

Post by demonasgodz »

the session logs seems like normal text.. doesn't seem to be anything wrong
my other commands are working fine

i tried lauching valorant, changing to headphones and lastly change volume
first 2 commands worked, but the volume doesnt budge

sorry for taking so much of your time, i had it working in my old pc.. not sure why its having a tantrum here.
Attachments
sessionlog.png
sessionlog.png (12.47 KiB) Viewed 15621 times
RobLatour
Site Admin
Posts: 1023
Joined: Mon Feb 19, 2018 11:43 am

Re: SetVol not working

Post by RobLatour »

Can you please check to see if you have any other active cards that Push2Run might be actioning instead of the one we are looking at, because the one we are looking at looks fine and runs fine when run manually?

Alternatively, can you please try turning off all other cards, and turn on only the one are looking at and then try again.
If it works in that case, it's likely another card that's getting run in place of the one you have shared above.

Please let me know what you find out.
demonasgodz
Posts: 6
Joined: Sun Jun 30, 2019 9:07 am

Re: SetVol not working

Post by demonasgodz »

Doesn't work even after disabling everything except the volume card :/
I guess it's a glitch at my end..

tried uninstalling p2r with revo uninstaller and did a fresh install and only setvol doesnt work :s
my only thought is that the card on this link (viewtopic.php?t=954) somehow messed with my p2r, since i can't double click to import card after i had this (even after clean install of p2r)
RobLatour
Site Admin
Posts: 1023
Joined: Mon Feb 19, 2018 11:43 am

Re: SetVol not working

Post by RobLatour »

Can you please create a directory called:

c:\program files\setvol

and install the setvol.exe program there.


Once done in Push2Run can you please add a new card (Actions - Add) and from Windows Explore just drag and drop the setvol.exe into the open field.

Please give it a unique description.

Please add a space and a $ sign at the end of all the 'Listen for' fields.

Please also add a $ sign in the Parameters field.

Click 'OK' to save the card.

Turn it on. Turn all other cards off. Make sure the Master Control switch is on.

Please give it a test and let me know if it worked.

As for the import, I just released a new version (4.2) that should make that work. You can upgrade to it by going to the Options – Check for update window and clicking the button ‘Check for update now’ button, and then clicking the update link.
Post Reply