how to open audio output device dialogselect as shortcut
#1
I want to open the audio output device dialogselect through custom icon i tried ActivateWindow(12000) but open dialogselect empty

How to open dialogselect for audio output device? I want to make it easy for my father to open with one click if he changed the TV to another screen.
Reply
#2
Why do you want this?
If it's about making switching audio settings easier then the audio profiles addon in the official repo does it in a more user-friendly way than you'll ever manage via links to kodi settings.
Reply
#3
I want to be easy for my father when he is switching mini pc from TV to another screen and sometimes earphone not going to setting and look for audio. I want it easy with one click , because he is not familiar with tech  Blush
Reply
#4
Audio profiles (or similar) is the way to go then.  It doesn't get any easier (once it's configured) - you might even be able to set it up to not need a click.
Reply
#5
What I want to open this window with one click then I will choose which input I want:

Image
Reply
#6
Can I do it with python script ?
Reply
#7
Have you tried using -

ActivateWindowAndFocus(id1, id2,item1, id3,item2)
Quote:Activate window with id1, first focus control id2 and then focus control id3. if either of the controls is a container, you can specify which item to focus (else, set it to 0).
Reply
#8
(2019-02-25, 20:27)Hitcher Wrote: Have you tried using -

ActivateWindowAndFocus(id1, id2,item1, id3,item2)
Quote:Activate window with id1, first focus control id2 and then focus control id3. if either of the controls is a container, you can specify which item to focus (else, set it to 0).
Thanks for pointing me to that, I tried this           
 <onclick>ActivateWindowAndFocus(systemsettings,-99,1,-79,0,12000)</onclick>

but stopped highlighted on Audio output device without open the dialog! how can I open the dialog for Audio output device?
Reply
#9
I tired also this and still couldn't open the dialogselect           
 <onclick>ActivateWindowAndFocus(systemsettings,-99,0,-79,selectdialog,)</onclick>
Reply
#10
Try adding another onclick action to select it -

<onclick>ActivateWindowAndFocus(systemsettings,-99,1,-79,0,12000)</onclick>
<onclick>Select</onclick>
Reply
#11
(2019-02-26, 00:09)Hitcher Wrote: Try adding another onclick action to select it -

<onclick>ActivateWindowAndFocus(systemsettings,-99,1,-79,0,12000)</onclick>
<onclick>Select</onclick>
 yeah it works..not like what I wanted but it open the dialogselect for audio output device. What I was wanted is to open the audio output device dialog without open the systemsettings page can I still achieve that?
Reply
#12
I wouldn't have thought so as it part of the system settings not a separate dialog.
Reply
#13
(2019-02-26, 10:46)Hitcher Wrote: system

So can I if I open the dialogselect and choose any of audio source will go to main menu immediately? like return to home page
Reply
#14
<onclick>ActivateWindowAndFocus(systemsettings,-99,1,-79,0,12000)</onclick>
<onclick>Select</onclick>
<onclick>ActivateWindow(Home)</onclick>
Reply
#15
(2019-02-26, 13:50)Hitcher Wrote:
<onclick>ActivateWindowAndFocus(systemsettings,-99,1,-79,0,12000)</onclick>
<onclick>Select</onclick>
<onclick>ActivateWindow(Home)</onclick>
 Yeah it's done...Thanks Blush
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
how to open audio output device dialogselect as shortcut00