|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
DriverHeaven Newbie
Join Date: Jun 2003
Posts: 9
Rep Power: 0 ![]() |
Change DSP settings from different programme?
Hello all,
I use my PC for music and as a PVR. Last night I settled down to watch a film and, of course there was no sound because I had been changing DSP settings and had forgotten to swap them back to my TV watching setting. As I struggled to my feet to trudge the 10 feet to my PC I thought, "wouldn't it be great if one of the buttons of my remote control could trigger a little quick and dirty utility to load the correct settings? I should write one". So, my question is this: Is there an 'official' way to programmatically tell KX to load a .kx file or does one have to change all the registry values and then reload the kx mixer with the --startup switch? If it's the latter then does one just change the values that are listed in the .kx file, for example pos_x under pgm10, or would have to delete all the keys under, using the same example, pgm10 first and just add back only the values that are listed in the .kx file? I hope that makes sense. Thanks in advance Tom |
|
|
|
|
|
#2 | |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
You can use use a batch file....
With my TV device remote - I can assign any key to run anything. And because '.kx' files are associated with kX Mixer... it will load those settings. I just tested and it works - for me. edit: In a new text file in notepad... "path\to\your\kX\settings\file.kx" Use quotes if there are any SPACES in the path And save - then rename to MIXER_PVR.BAT Then do what ever with your remote control software to call that bat file when a button is pressed. additional edit: The easy way to get the full path to your kX settings file is to drag and create a shortcut - then inspect the properties of this new shortcut and copy / paste the TARGET text into notepad. - it will likely have the needed quotes if they are saved in '..\Program Files\..' or '...\Documents and Settings..\' folders. Quote:
Last edited by Maddogg6; May 30, 2007 at 07:01 PM. |
|
|
|
|
|
|
|
|
DriverHeaven Newbie
Join Date: Jun 2003
Posts: 9
Rep Power: 0 ![]() |
Thanks for the quick reply.
Launch the .kx file. Brilliant. Unfortunately I need to cater for situations where kxmixer is not already running which complicates things slightly as launching a settings file won't start kxmixer and launching kxmixer when it's already running opens the mixer screen. I think I'm going to have to check if kxmixer is already running, start it if it isn't, load the settings and then unload the mixer (as I don't have it running when not playing with the dsp as it stops my pc going into standby). I'll have another look at it over the weekend. |
|
|
|
|
|
#4 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
hmm - you didnt spec that condition before...
You could try a scripting language (WSH, AutoIt, AutoHotKey)... than always assumes kX is closed - runs the kXmixer - loads the settings - then closes kXMixer. Other than that - I have no idea how one determines is kXMixer is already running or not. Most likely will need C/C++ programming - maybe needs kX SDK. I know those scripting languages can check for a window but not sure about checking memory or the tray icon... ?? This has gone beyond my level of knowledge... sorry Good luck |
|
|
|
|
|
#5 |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62 ![]() ![]() ![]() ![]() ![]() ![]() |
You could try something like the following (VBScript/WSH):
Code:
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set service = locator.ConnectServer()
Set props = service.ExecQuery("select name, description from Win32_Process where name = 'kxmixer.exe'")
num = props.Count
If num > 0 Then
WSHShell.Run "kxmixer --shell --load-settings C:\Program Files\kX Audio Driver\Configurations\rg.kx", 1, false
WScript.Sleep 2000
WSHShell.Run "kxmixer.exe --quit", 1, false
Else
WSHShell.Run "kxmixer.exe", 1, false
WScript.Sleep 2000
WSHShell.Run "kxmixer --shell --load-settings C:\Program Files\kX Audio Driver\Configurations\rg.kx", 1, false
WScript.Sleep 2000
WSHShell.Run "kxmixer.exe --quit", 1, false
End If
Set WSHShell = Nothing
Last edited by Russ; May 31, 2007 at 08:37 PM. |
|
|
|
|
|
#6 |
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0 ![]() ![]() |
ahah - thats how its done... Thanks Russ I'll have to archive this info...
With some tweaking - you could use this to : Check if kX mixer is running - Load kXmixer if not Load kX Settings Close kXMixer run PVR software Then run that script instead of the shortcut for your PVR software And avoid having to do ANYTHING at all - it will always run with needed kX settings... for the uber lazy that is
|
|
|
|
|
|
|
|
DriverHeaven Newbie
Join Date: Jun 2003
Posts: 9
Rep Power: 0 ![]() |
Thanks Russ & Maddogg
I'm more of a VB6 programmer so I've converted it for that language. I've also added a couple of enhancements in the form of a command line where one can tell it which setting to load and how long to pause between each invocation of kxmixer.exe. Thanks again Tom |
|
|
|
![]() |
| Thread Tools | |
|
|