HardwareHeaven.com

HardwareHeaven.com

Looking for the skin chooser?
 
 
  • Home

  • Hardware reviews

  • Articles

  • News

  • Tools

  • Gaming at HardwareHeaven

  • Forums

 

Go Back   HardwareHeaven.com > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > General Discussion


Reply
 
Thread Tools
Old May 30, 2007, 05:31 PM   #1
DriverHeaven Newbie
 
Join Date: Jun 2003
Posts: 9
Rep Power: 0
tompiper is on a distinguished road

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
tompiper is offline   Reply With Quote


Old May 30, 2007, 06:53 PM   #2
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

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:
"H:\Documents and Settings\user\KX 3538M\A2_DSP_Default.kx"
But thats just how mine are organized.... yours are likely different.

Last edited by Maddogg6; May 30, 2007 at 07:01 PM.
Maddogg6 is offline   Reply With Quote
Old May 31, 2007, 11:28 AM Threadstarter Thread Starter   #3
DriverHeaven Newbie
 
Join Date: Jun 2003
Posts: 9
Rep Power: 0
tompiper is on a distinguished road

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.
tompiper is offline   Reply With Quote
Old May 31, 2007, 04:42 PM   #4
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

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
Maddogg6 is offline   Reply With Quote
Old May 31, 2007, 08:25 PM   #5
HardwareHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 5,563
Rep Power: 62
Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!Russ is just super!

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
Edit the above paths such that they point to your config file, etc.

Last edited by Russ; May 31, 2007 at 08:37 PM.
Russ is offline   Reply With Quote
Old May 31, 2007, 10:19 PM   #6
Tail Razer
 
Maddogg6's Avatar
 
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 4,027
Rep Power: 0
Maddogg6 will become famous soon enoughMaddogg6 will become famous soon enough

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
Maddogg6 is offline   Reply With Quote
Old Jun 1, 2007, 12:20 PM Threadstarter Thread Starter   #7
DriverHeaven Newbie
 
Join Date: Jun 2003
Posts: 9
Rep Power: 0
tompiper is on a distinguished road

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
tompiper is offline   Reply With Quote
Reply

Thread Tools