Howdy,
I want to use EG to change my speaker config when I switch monitors/sound device (via HDMI Sony Amp etc).
I found the Registry Key that changes the speaker config to 7.1... exported it.
Click it directly... it works/changes to 7.1.
I created a batch file to call up that registry key.
Click it directly... it works/changes to 7.1.
I try to call up that batch file in EG via Start Program/Application and it runs the batch file but does NOT change the speaker config.
Is there something I need to add/change to the EG Start Program parameters? Maybe command line something or other.
Thanks for any help.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Win7 SpeakerConfig Registry Key Batch File
Win7 SpeakerConfig Registry Key Batch File
eventghost.net
Be there or be square.
Be there or be square.
Re: Win7 SpeakerConfig Registry Key Batch File
First come to mind:
Try to use full paths inside bat file. Also, call your bat file with full path.
Try to use full paths inside bat file. Also, call your bat file with full path.
Re: Win7 SpeakerConfig Registry Key Batch File
Thanks for that wakko.
But no go yet.
Full paths.... like this...
my batch file...
I have tried moving both the batch and reg key to root of C, to different places, renaming them.
Nothing like that would help it work via EG.
But no go yet.
Full paths.... like this...
my batch file...
Code: Select all
REGEDIT /S "C:\Users\SSD-666\Desktop\71.reg"Nothing like that would help it work via EG.
eventghost.net
Be there or be square.
Be there or be square.
Re: Win7 SpeakerConfig Registry Key Batch File
I'm suspecting your problem is that EG is running the 32bit version of Regedit, so the registry is update in the wrong section if you are running on a 64bit Windows.zian wrote:I try to call up that batch file in EG via Start Program/Application and it runs the batch file but does NOT change the speaker config.
Try this In EGs Start application, put in Executable:
Code: Select all
c:\Windows\sysnative\cmd.exePut in Command line options:
Code: Select all
/c start regedit.exe /S "C:\Users\SSD-666\Desktop\71.reg"Hope this helps.
jonib
Re: Win7 SpeakerConfig Registry Key Batch File
Freaking Genius.jonib wrote:I'm suspecting your problem is that EG is running the 32bit version of Regedit, so the registry is update in the wrong section if you are running on a 64bit Windows.
Hope this helps.
jonib
Works like a charm jonib.
Thanks much.
eventghost.net
Be there or be square.
Be there or be square.
Re: Win7 SpeakerConfig Registry Key Batch File
What if you use EventGhost's built in registry changer, rather than a batch file? Do you still need to use sysnative trick?jonib wrote:I'm suspecting your problem is that EG is running the 32bit version of Regedit, so the registry is update in the wrong section if you are running on a 64bit Windows.
jonib
Re: Win7 SpeakerConfig Registry Key Batch File
By default a 32bit program can't access the 64bit part of the registry.blaher wrote:What if you use EventGhost's built in registry changer, rather than a batch file? Do you still need to use sysnative trick?
There is a parameter KEY_WOW64_64KEY that needs to be used to access the 64bit registry. I don't know if EventGhost uses that.
jonib
