View Single Post
Old 10-09-2007, 09:04 PM   #297
HarryBash
Newbie
 
Join Date: Feb 2007
Posts: 17
My Photos: ()
Question Need some help with config.xml

First of all, I would like to say Awsome work guys specially cherrybomb i have been reading this thread since it started (also read all other threads related to SN), but never actually posted anything. I was waiting for cherry to come out with a version that atleast had 90% functionality of what was being conceptulized. I ordered my SpaceNavigator 3 days ago and got it just today and have wasted so much time just playing around with it and configuring it to run with RR. And let me tell you it has been fun, exciting and frustrating all at the same time. But i am happy with what it can do, it is truely amazing.

I am basically using inh's config file with some of my own alterations, my first problem is that the taskbar icon for the SpaceNavigator app (i have version 0.2b latest) always stays blue no matter what. Even when i disconnect it, it stays blue and doesn't trun to red.

Second problem is with device contexts i am using two contexts one that simulates a mouse and one that does media controls i have set up the menu.skin, audio_player.skin and all other skin files needed with the line TMR,1 and added the appropriate lines to ExecTBL.ini as suggested by inh's guide. Now when i start RR on the menu skin i have it set to be used as a mouse and it works fine i can move the mouse pointer but when i click the buttons they don't work as mouse buttons, even tho i have them set to simulate as mouse buttons under the Mouse context. But they rather simulate a mute button(only the right one) which i have set up under the Media context. So basically moving the hat works as a mouse when it should(i.e in Mouse context) but no matter what context i am under the buttons always work as what is configured under the Media context (left one does nothing, right one mutes).

Please help below are my files:

config.xml
Code:
<deviceContexts> <deviceContext name="Mouse" device="SpaceNavigator"> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 0 pan left/right --> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 1 pan foreward/back --> <axe threshold="500" type="binary" posAction="" negAction=""/> <!-- axe 2 push/pull --> <axe simulateMouseMove="y" threshold="50" divisor="30" /> <axe simulateMouseMove="x" threshold="50" divisor="30" /> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 5 twist --> <buttons> <button simulateMouseButton="left" /> <button simulateMouseButton="right" /> </buttons> </deviceContext> <deviceContext name="Media" device="SpaceNavigator"> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 0 pan left/right --> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 1 pan foreward/back --> <axe threshold="300" type="binary" posAction="RR Play/Pause" negAction="RR Exit"/> <!-- axe 2 push/pull --> <axe threshold="200" type="binary" posAction="" negAction=""/> <!-- axe 3 tilt foreward/back --> <axe threshold="200" type="binary" posAction="RR Prev" negAction="RR Next"/> <!-- axe 4 tilt left/right --> <axe threshold="100" type="exponential" startPulse="1" endPulse="20" posAction="RR Volume Up" negAction="RR Volume Down" /> <!-- axe 5 Twist --> <buttons> <button downAction="" upAction=""/> <button downAction="RR Mute" upAction=""/> </buttons> </deviceContext> </deviceContexts> <contexts> <context name="Default" deviceContext="Media" /> <context name="Mouse" deviceContext="Mouse" /> <context name="Media" deviceContext="Media" /> </contexts> <actions> <sendWindowMessage name="Context Up" type="CopyData" window="SpaceNavigatorDriver" message="CONTEXT;Up"/> <sendWindowMessage name="Context Down" type="CopyData" window="SpaceNavigatorDriver" message="CONTEXT;Down"/> <sendWindowMessage name="RR Volume Up" type="CopyData" window="RoadRunner" message="VOL+"/> <sendWindowMessage name="RR Volume Down" type="CopyData" window="RoadRunner" message="VOL-"/> <sendWindowMessage name="RR Mute" type="CopyData" window="RoadRunner" message="MUTE"/> <sendWindowMessage name="RR Play/Pause" type="CopyData" window="RoadRunner" message="PLAY"/> <sendWindowMessage name="RR Next" type="CopyData" window="RoadRunner" message="NEXT"/> <sendWindowMessage name="RR Prev" type="CopyData" window="RoadRunner" message="PREV"/> <sendWindowMessage name="RR Exit" type="CopyData" window="RoadRunner" message="EXIT"/> <!-- "BYVAR;VISURUNNING;RUNVISU<<STOPVISU",@FULL_VISU@ --> <sendWindowMessage name="RR FullVisu" type="CopyData" window="RoadRunner" message="Full_Visu"/> <keyPress name="Copy"> <key>17</key> <key>67</key> </keyPress> <keyPress name="Paste"> <key>17</key> <key>86</key> </keyPress> </actions> </snConfig>

ExecTBL.ini
Code:
/, This (OPTIONAL) file contains translation commands. /, RR will accept the commands defined on the LEFT /, and execute them as expressed on the RIGHT /, you can use this to create or redefine any command /, (or to add functionality to any syandard command). /, /, The Format of this file is (by choice): /, /, "<COMMAND>","<EXEC COMMAND>" /, "<COMMAND>","<EXEC COMMAND>",filename.skin /, /, Examples: /, "AUDIO","LOAD;audio_player.skin;Audio Player" /, "RESTARTSONG","SEEKTO;00:00",audio_player.skin /, /, Extas: /, XM, FM and MM can be used instead of a skin file /, to be translated when XM, FM or MM is turned ON. /, /, PLAY, PAUSE and STOP can be used instead of skin /, file name so it executes commands based on MP3 or /, Video playback status. "QUIT","SendMsg;RRCDRip;showplugin||bye" "BYE","QUIT" /, Set Bellow the Path to the CDRip plugin (if used) "CDRIP","PLUGIN;RRCDRip;D:\VBStuff\Road Runner\CDRip\CDRip.exe" /, You can add commands to execute before suspend /, and after resume, using the codes bellow: "ONSUSPEND","" "ONRESUME","" "ONFILECLICK","" "ONDIRCLICK","" "ONPLCLICK","" "ONDLCLICK","" "ONPBCLICK","" /,ADDED BY CONFIG "IGPAUSE","!PRESET;IG3;WINAMP||SETVOL;WINAMP;100" "IGRESUME","PRESET;IG3;WINAMP" "TIMER","SENDMSG;SpaceNavigatorDriver;CONTEXT;Media",audio_player.skin "TIMER","SENDMSG;SpaceNavigatorDriver;CONTEXT;Mouse",menu.skin "TIMER","SENDMSG;SpaceNavigatorDriver;CONTEXT;Mouse",menu2.skin "TIMER","SENDMSG;SpaceNavigatorDriver;CONTEXT;Mouse",game.skin


Last edited by HarryBash : 10-09-2007 at 09:08 PM.
HarryBash is offline   Reply With Quote