vbscript - Controling volume based on the name of a tab in the taskbar -


i'm new programming , first exercise wanted write program mute volume when taskbar displays element name.

full disclosure, mute out ads on spotify when come on. noticed name of tab changes "spotify - spotify". when happens, i'd program mute volume until name changes again. granted pay (quite low) monthly subscription, wouldn't learn programming standpoint.

can point me in right direction started on this?

i've found on not i'm looking (i think): how control windows system volume using jscript or vbscript?

thanks all.

if ok muting try tasks via word object (i know...) described here:

set objword = createobject("word.application") set coltasks = objword.tasks  each objtask in coltasks     if objtask.visible         wscript.echo objtask.name     end if next  objword.quit 

you put inner in loop , check objtask.name "spotify - spotify" every second , sleep in between. if find can use sendkeys solution post found

var oshell = new activexobject("wscript.shell"); oshell.sendkeys(string.fromcharcode(0xad)); 

to mute whole system.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -