Results 1 to 5 of 5

Thread: Different key commands in different skins?

  1. #1
    Newbie ErikFalken's Avatar
    Join Date
    Mar 2005
    Location
    Årjäng, Sweden
    Posts
    14

    Different key commands in different skins?

    Hi!

    I have a rotary controller which I want to use this way:

    (I will connect it to the keyboard as two keys, left and right)

    in main.skin, keys 39 and 37 (left and right) I will have as "CTRLLEFT" and "CTRLRIGHT" to seledt different buttons, and in audio_player.skin I will have the keys as "CTRLUP" and "CTRLDOWN" to scroll the playlist. I will also use the "push" function on the rotary swith for "PLAY" in audio_player.skin.

    Is it possible to use different key commands in different skins? and if, how?

    /Erik

  2. #2
    Maximum Bitrate kpjuk's Avatar
    Join Date
    Dec 2003
    Location
    West Midlands
    Posts
    474

    Smile

    Hello Erik,

    you can define commands in ExecTBL.ini which are skin specific, see extract below:

    /, 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

    So try and define the keycodes, and then the commands something like this:

    39,"MYKEYLEFT"
    37,"MYKEYRIGHT"

    "MYKEYLEFT","CTRLLEFT";Firstskin name.skin
    "MYKEYLEFT","CTRLUP";Secondskin name.skin

    I would use the ExecTBL.ini file in the skin directory, which makes these commands specific to that skin only.

    You may be able to do this in KeyTBL.ini, I am not sure, but a couple of options at least.

    cheers
    KPJUK
    M1000, 512MB, 512MB CF, 6GB Disk (4200rpm),
    DVD/RW, Dynamix 8" screen, M2-ATX, Custom case,Too many hours building and rebuilding and rebuild.......

  3. #3
    Newbie ErikFalken's Avatar
    Join Date
    Mar 2005
    Location
    Årjäng, Sweden
    Posts
    14
    Thanx, with some small mods all workes fine!

  4. #4
    Newbie
    Join Date
    Apr 2006
    Location
    Clearwater, Fl
    Posts
    47

    What?

    Hey Erik. What did you wind up doing to get your button thing to work differently per screen.

    Do you have the code you used?

  5. #5
    Maximum Bitrate
    Join Date
    Oct 2003
    Location
    Copenhagen, Denmark
    Posts
    747
    It's as simple as this :

    Figure out which keycodes your device sends on turns/pushes and so on,
    map those keycodes to a virtual command name in Keytbl.ini like so :

    6038,"SN_TWIST_RIGHT"
    6040,SN_TWIST_LEFT"
    6037,"SN_MOVE_LEFT"
    6039,"SN_MOVE_RIGHT"

    Keycodes can be found with the little util called keycode.exe in the RR dir.

    Then use Exectbl.ini to define what real command each virtual command should execute on which screen, something like this :

    "SN_TWIST_RIGHT","VOL-",Audio_Player.skin
    "SN_TWIST_LEFT","VOL+",Audio_Player.skin

    "SN_TWIST_RIGHT","CTRLDOWN",Audio_Browser.skin
    "SN_TWIST_LEFT","CTRLUP",Audio_Browser.skin

    This will make the same button/axis on a device control Volume when you are in the audio player, and the playlist selection when you are in the audio browser, hope you get the idea.
    Transflective Lilliput 8", LV-677DC Core Duo 1,83Ghz, , Mpegbox uSDC20D, Shuttle Express, HQCT, PG XS6600 http://carpc.boyakasha.dk

Similar Threads

  1. CentraFuse Skins for Download
    By TheFireBall in forum CF Skins
    Replies: 6
    Last Post: 08-19-2008, 01:38 PM
  2. SpeakEasy Voice Recognition - Beta 1
    By ruairi in forum Road Runner
    Replies: 31
    Last Post: 08-22-2006, 11:12 PM
  3. Replies: 4
    Last Post: 02-27-2006, 05:04 PM
  4. Skins, skins, skins and... skins (and NOTHING MORE)
    By netsuo in forum NeoCar Media Center
    Replies: 42
    Last Post: 12-21-2005, 07:12 AM
  5. NaviVoice v.6 RELEASED!
    By 0l33l in forum PowerVoice
    Replies: 28
    Last Post: 10-11-2004, 12:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •