StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 Open sound setting on: app volume and device
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

Eien

3 Posts

Posted - 10/24/2018 :  14:54:26  Show Profile  Reply with Quote
Hello Rob!

Thank you for making such a great and usefull app.

There's this new setting in windows 10 that allows you to select a different output per app and i've found myself using it quite a lot but it takes quite a few click to open it each time.


I've tried those ideas after some research on the web but they didn't work quite like i wanted:
https://www.reddit.com/r/Windows10/comments/8ggozl/1803_volume_mixer_shortcut_name/ br /

I'm looking for a way to open it with a gesture on strokes plus but this is way over my head. Any help would be greatly apreciated.



Hard.Wired

44 Posts

Posted - 10/27/2018 :  15:59:58  Show Profile  Reply with Quote
Assign this code to your stroke...

acShellExecute("open", "ms-settings:sound", "", "", 1)
acDelay(1000)
acSendKeys("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB} ")

Keep in mind that acDelay may need more time for slower computers. The number of tabs is dependent on the current user interface layout which may change with future versions of Windows.

Alternatively, you can still use the old style Volume Mixer by right clicking on the task tray sound icon and selecting "Open Volume Mixer". Personally, I hope Microsoft doesn't completely get rid of the old method or replaces it with something quicker and more convenient.

Edited by - Hard.Wired on 10/27/2018 16:07:12
Go to Top of Page

Eien

3 Posts

Posted - 10/27/2018 :  17:32:50  Show Profile  Reply with Quote
Hi Hard.Wired!

Thank you for helping!

I've tried to assign the code you've given me to a stroke but like you've said it didn't work at first on my inteface layout so i've tried to add empirically other keyboards imputs and this one has sort of worked:

acShellExecute("open", "ms-settings:sound", "", "", 1)
acDelay(500)
acSendKeys("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}")

So it's working but it's a bit messy as it opens the sound setting window just before opening the window i want to open (app volume and device).

I don't think the old mixer allow to chose a different sound output for each app but there's an app on the windows store named eartrumpet that brings this option on the system tray.

I'm using a dual screen set up (computer + TV) so it's just more convinient when you are far from the screen to do a stroke and have the window pop up instead of going to the systray.





Edited by - Eien on 10/28/2018 05:31:44
Go to Top of Page

Hard.Wired

44 Posts

Posted - 10/28/2018 :  15:39:40  Show Profile  Reply with Quote
I don't know of a way do get directly to the "App volume and device preferences" page without activating the Sound page first (via URI). I haven't had time to play with Windows 10 1809 yet, but maybe they will add a direct link in the future.

FYI, here is a link to URIs as of 1803:

https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app
Go to Top of Page

Hard.Wired

44 Posts

Posted - 10/28/2018 :  15:49:57  Show Profile  Reply with Quote
One thing I will add, which isn't said often enough, is that if your stroke also uses a keys such as (Ctrl, Shift, Alt, Windows) to initiate it and you are still holding those keys while the script commands are firing off, it can modify things (i.e. Tab becomes Ctrl+Tab). If this kind of thing seems to be happening, you may need to release your stroke activation keys (i.e. acSendControlUp() releases Ctrl) before your script starts processing your intentions.
Go to Top of Page

Hard.Wired

44 Posts

Posted - 11/05/2018 :  20:56:10  Show Profile  Reply with Quote
Well Eien, it looks like you may soon get something you might like:

https://mspoweruser.com/microsoft-is-deprecating-the-old-windows-volume-mixer/
Go to Top of Page

Hard.Wired

44 Posts

Posted - 11/05/2018 :  21:10:29  Show Profile  Reply with Quote
Also, have you tried EarTrumpet?
Go to Top of Page

Eien

3 Posts

Posted - 11/06/2018 :  10:16:04  Show Profile  Reply with Quote
Hi Hard.Wired!

Thanks for the link. You're right, i would very much like this because it would solve my issue with the volme mixer. And i think the script: acShellExecute("open", "ms-settings:sound", "", "", 1) would be enough to do what i want.

Yes i have tried Ear trumpet. (It's on the reddit thread gathering ideas and workarounds to easily open "App volume and device preferences" i've posted with my request.

The app has a nice volume mixer that pops up when clicking on: "EarTrumpet volume mixer" after right clicking the ear trumpet icon on the system tray (it's the same icon as the original windows volume mixer so it can be confusing because when installed there are two sound icons in the systray and they look the same.
I've tried to find a way to lauch Ear trumpet volume mixer window with strokesplus but i coudn't. It looks like you have to be the proprietary of the app to be able to acess the .exe allowing you to launch the volume mixer.

Anyway Microsoft is planning on giving us something way cleaner so i'll wait for the update.

Thanks again for your help and for all your very relevant insight to find an answer to my question.




Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000