Author Topic: Keyhelper Help...  (Read 6231 times)

davidmcnaught16

  • Newbie
  • *
  • Posts: 36
    • View Profile
Keyhelper Help...
« on: June 17, 2005, 07:25:26 pm »
Does anyone know how to get the Comma key to produce a comma without the shift key?

Last year, I bought a Zaurus C860, and when I received it, I was quite annoyed that I had to use the shift key every time I wanted a comma!  I played with Keyhelper for a while and figured out a way of fixing the problem.  Sadly, I didn't keep a record of how to fix it, and need to as I'm selling my C860 on.

I've re-installed Cacko, and have spend a good bit of time trying to get the ',' key to work, but no success.  I've go the 'sticky shift' which is good, but in order to get the comma working properly, I've got to disable keyhelper, loosing the sticky shift.

Can anyone give me a keyhelper.xml file, or the code that works on Cacko 1.22 on a C860 that has the comma key working properly?

I've searched for ages, tried many things, but nothing seems to work.  Frustrating stuff, when I know all it needs is a couple of lines of simple text!!!!  Cheers in advance for any help!!

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper Help...
« Reply #1 on: June 17, 2005, 11:12:13 pm »
remove the lines in your keyhelper.xml file that looks like this

Code: [Select]

            
            
            
        

        
            
            
            
        

or stop using keyhelper all together

You must do a lot of writing, rather than console or scripting, to want the comma instead of the / by default. I'm the other way and hate to have to use space to get /

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

davidmcnaught16

  • Newbie
  • *
  • Posts: 36
    • View Profile
Keyhelper Help...
« Reply #2 on: June 18, 2005, 08:13:25 am »
It's all a bit strange, as when I remove those lines, as long as Keyhelper is enabled, the ',' still requires shift!

I hardly use console or scripting at all - only when I'm trying to get the comma sorted so I can do writing!  I used the Zaurus for Uni you see, so it was always writing and taking notes, where you don't want to use / all the time, and always need the comma!

davidmcnaught16

  • Newbie
  • *
  • Posts: 36
    • View Profile
Keyhelper Help...
« Reply #3 on: June 18, 2005, 08:13:45 am »
It's all a bit strange, as when I remove those lines, as long as Keyhelper is enabled, the ',' still requires shift!

I hardly use console or scripting at all - only when I'm trying to get the comma sorted so I can do writing!  I used the Zaurus for Uni you see, so it was always writing and taking notes, where you don't want to use / all the time, and always need the comma!

Cheers for the help though!

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper Help...
« Reply #4 on: June 18, 2005, 09:25:08 am »
You did reload keyhelper after making the changes I presume.

If not the try
Code: [Select]
khctl reload you should see the keyhelper version in the taskbar for a few secs aftre doing this.

If you have reloaded already then post your keyhelper.xlm here so I can try it out (or pm it to me)

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Keyhelper Help...
« Reply #5 on: June 29, 2005, 05:15:31 am »
Hello Stubear,

I've read your keyhelper introduction.
https://www.oesf.org/index.php?title=Introd...on_to_KeyHelper

Great ressource! Do you know where or how I can obtain the keycodes of all my SL-C3000 keys, so I can make best use of keyhelper?

Thanks

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper Help...
« Reply #6 on: June 29, 2005, 10:36:37 pm »
Quote
Hello Stubear,

I've read your keyhelper introduction.
https://www.oesf.org/index.php?title=Introd...on_to_KeyHelper

Great ressource! Do you know where or how I can obtain the keycodes of all my SL-C3000 keys, so I can make best use of keyhelper?

Thanks

daniel
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Thanks  Hopefully I'll get around to finishing the menu section sometime soon.

Your best bet for getting the keycodes is to download and install KeyhelperConf from [a href=\"http://tbox.jpn.org/linuzau/keyhelperconf/]http://tbox.jpn.org/linuzau/keyhelperconf/[/url]

When you run it it tells you the keycodes for each key/button you press and generates the xml needed to be entered into the keyhelper.xml file. Saves a lot of time and typing

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

davidmcnaught16

  • Newbie
  • *
  • Posts: 36
    • View Profile
Keyhelper Help...
« Reply #7 on: June 30, 2005, 06:20:22 am »
Sadly the keyhelperconf doesent recognise the comma key.  Oh well, it's not a problem, I've just disabled keyhelper which means I don't get the sticky shift.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper Help...
« Reply #8 on: June 30, 2005, 10:21:40 am »
What do you want to do with the comma key and what version of keyhelper are you using?

I'm not sure if it's a keyhelper or C1000 issue, but until I changed my keyhelper.xml entry or disabled keyhelper I couldn't get comma in keyhelperconf either.

My entry for swapping / and , action is
Code: [Select]


    
    
    


    
    
    
    

Until I added the <map_unicode char=","/> and <map_unicode char="/"/>  lines I couldn't get a comma.

I didn't have these lines in the keyhelper.xml file on my C760 but I was using an earlier version of keyhelper (currently 1.2.2 on my C1000).

To get keyhelperconf to work properly I always disable keyhelper while using it.

Hope this helps

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

gdog

  • Full Member
  • ***
  • Posts: 246
    • View Profile
Keyhelper Help...
« Reply #9 on: July 18, 2005, 12:33:11 am »
Quote
remove the lines in your keyhelper.xml file that looks like this

Code: [Select]

            
            
            
        

        
            
            
            
        

or stop using keyhelper all together

You must do a lot of writing, rather than console or scripting, to want the comma instead of the / by default. I'm the other way and hate to have to use space to get /

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=84751\"][{POST_SNAPBACK}][/a][/div]


Hi Stu,
Do you know where I could lay my hands on the list of which keys of my C1K correspond to the define, map, Fxx, and unicode codes and keys?

I don't read Japanese at all so the links in your otherwise helpful document aren't helpful to me. But I'd sure like to know how to change some of the keys on my Z. In particular, I like you would rather shift to get the comma than the /. And I'm also at a loss to undertand how to get all of the / , and ` chars to appear. Of course I can get the / and , but the backtick on my Z requires a Shift + Fn +@, while there appears to be a perfectly good `, yet unusable one on the same key as the / and ,.  
And finally, even though it does not appear to be mapped in my keyhelper.xml file, my { is mapped to Fn + N while my } is mapped to my Fn + M. Not a big deal that, but it kind of makes me think that there's more to keyhelper than meets the eye ;o)

Thanks,

gdog
« Last Edit: July 18, 2005, 12:35:05 am by gdog »
You can tell a lot about a man by the condition of his shoes

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper Help...
« Reply #10 on: July 18, 2005, 06:40:31 am »
Quote
Hi Stu,
Do you know where I could lay my hands on the list of which keys of my C1K correspond to the define, map, Fxx, and unicode codes and keys?

I don't read Japanese at all so the links in your otherwise helpful document aren't helpful to me. But I'd sure like to know how to change some of the keys on my Z. In particular, I like you would rather shift to get the comma than the /. And I'm also at a loss to undertand how to get all of the / , and ` chars to appear. Of course I can get the / and , but the backtick on my Z requires a Shift + Fn +@, while there appears to be a perfectly good `, yet unusable one on the same key as the / and ,. 
And finally, even though it does not appear to be mapped in my keyhelper.xml file, my { is mapped to Fn + N while my } is mapped to my Fn + M. Not a big deal that, but it kind of makes me think that there's more to keyhelper than meets the eye ;o)

Thanks,

gdog
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88659\"][{POST_SNAPBACK}][/a][/div]

I got most of my codes using the keyhelperconf program (link above)

To shift to get , rather than / then insert the following lines into keyhelper.xml
Code: [Select]


  
  
  


  
  
  
  

If you are using a Japanese font (lcfont for example) then \ will show as the yen sign (¥) this is a font issue, the character is a \ and works as a \ in scripts etc.

The thing you see as a ` under the / is actually the Japanese comma, you can oly get in Japanese input mod, same as the small circle is used for as period under the ?.

I don't have the FN+M = { even when keyhelper is turned off, so you must have it mapped somewhere, I have FN+N mapped to ` using the following code
Code: [Select]

    
    
    

As mentioned above, grab keyhelperconf, it makes generating the xml a piece of cake

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

gdog

  • Full Member
  • ***
  • Posts: 246
    • View Profile
Keyhelper Help...
« Reply #11 on: July 19, 2005, 12:25:46 am »
Quote
I don't have the FN+M = { even when keyhelper is turned off, so you must have it mapped somewhere, I have FN+N mapped to ` using the following code
Code: [Select]

    
    
    

As mentioned above, grab keyhelperconf, it makes generating the xml a piece of cake

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88683\"][{POST_SNAPBACK}][/a][/div]

As usual Stu you're a fountain of knowledge. It's been a long day so I'm gonna be lazy and not go upstairs to get me Z and show you a copy of my keyhelper.xml file, but I did a search in it for { and }, and came up empty in both cases. So unless Trisoft used codes I can't tell you where they're mapped or how.

As for keyhelperconf I'd love to have it, but unfortunately the link you provided bring me to a Japanese site, and I'm uni-lingual    ie clueless when it comes to Japanese.

I've got another question for you (I always have lots of questions don't I?). I recently plugged a USB keyboard into my C1K and noticed that the keymappings were identical, such as the apostrophe being a shift +7 on the usb kb. So if I remap things on the Z, will those changes be reflected on the usb keyboard do you think?

I'll try your remap of the / and , in my /home/zaurua/Settings/keyhelper.xml file. At least that will tell me if I'm changing the file that the Z is actually using. Come to think of it I should see a start link to the khctl script somewhere in one of my rc directories shouldn't I? Otherwise I may not even be using the file that is there...

Thanks!

gdog
You can tell a lot about a man by the condition of his shoes

gdog

  • Full Member
  • ***
  • Posts: 246
    • View Profile
Keyhelper Help...
« Reply #12 on: July 19, 2005, 12:55:13 am »
Quote
Quote
I don't have the FN+M = { even when keyhelper is turned off, so you must have it mapped somewhere, I have FN+N mapped to ` using the following code
Code: [Select]

    
    
    

As mentioned above, grab keyhelperconf, it makes generating the xml a piece of cake

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88683\"][{POST_SNAPBACK}][/a][/div]

As usual Stu you're a fountain of knowledge. It's been a long day so I'm gonna be lazy and not go upstairs to get me Z and show you a copy of my keyhelper.xml file, but I did a search in it for { and }, and came up empty in both cases. So unless Trisoft used codes I can't tell you where they're mapped or how.

As for keyhelperconf I'd love to have it, but unfortunately the link you provided bring me to a Japanese site, and I'm uni-lingual    ie clueless when it comes to Japanese.

I've got another question for you (I always have lots of questions don't I?). I recently plugged a USB keyboard into my C1K and noticed that the keymappings were identical, such as the apostrophe being a shift +7 on the usb kb. So if I remap things on the Z, will those changes be reflected on the usb keyboard do you think?

I'll try your remap of the / and , in my /home/zaurua/Settings/keyhelper.xml file. At least that will tell me if I'm changing the file that the Z is actually using. Come to think of it I should see a start link to the khctl script somewhere in one of my rc directories shouldn't I? Otherwise I may not even be using the file that is there...

Thanks!

gdog
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88770\"][{POST_SNAPBACK}][/a][/div]


Stu,
I couldn't wait and went upstairs and got my Z and typed in your changes longhand, and they worked just fine. So I figured the least I could do was provide you with a copy of my keyhelper.xml file for your perusal.

Thank you very much. My coding will be much easier now!!!

I tried it as an attachment but it didn't come out well so I'll try it this way


<?xml version="1.0"?>
<keyhelper>
        <modifiers>
                <define key="F26" type="Control">
                        <release key="F31"/>
                </define>
                <define key="F21" type="Alt">
                        <release key="F25"/>
                </define>
                <define key="F12" type="User1">
                </define>
                <define key="Shift" type="Shift"toggle="True"/>
        </modifiers>
        <mappings>
                <define code="2019">
                        <map code="0x7b"/>
                        <map_unicode code="0x7b"/>
                </define>
                <define code="201a">
                        <map code="0x7d"/>
                        <map_unicode code="0x7d"/>
                </define>
                <define code="2017">
                        <map code="0x0e4"/>
                        <map_unicode code="0x0e4"/>
                </define>
                <define code="2018">
                        <map code="0x0df"/>
                        <map_unicode code="0x0df"/>
                </define>
                <define code="2015">
                        <map code="0x0f6"/>
                        <map_unicode code="0x0f6"/>
                </define>
                <define key="cent">
                        <map code="0x0fc"/>
                        <map_unicode code="0x0fc"/>
                </define>
                <define code="2017">
                        <modifier Shift="On"/>
                        <map code="0x0c4"/>
                        <map_unicode code="0x0c4"/>
                        <map_modifier Shift="Off"/>
                </define>
                <define code="2015">
                        <modifier Shift="On"/>
                        <map code="0x0d6"/>
                        <map_unicode code="0x0d6"/>
                        <map_modifier Shift="Off"/>
                </define>
                <define key="cent">
                        <modifier Shift="On"/>
                        <map code="0x0dc"/>
                        <map_unicode code="0x0dc"/>
                        <map_modifier Shift="Off"/>
                </define>
                <define key="Equal">
                        <modifier Shift="On"/>
                        <map code="0x20ac"/>
                        <map_unicode code="0x20ac"/>
                        <map_modifier Shift="Off"/>
                </define>
   <define key="Period">
      <modifier Shift="On"/>
      <map key="Period"/>
   <map_unicode char="?"/>
   </define>
   
   <define key="Comma">
      <map key="Comma" />
      <map_modifier Shift="On" />
      <map_unicode char="/" />
   </define>
   <define key="Comma">
      <modifier Shift="On" />
      <map key="Comma" />
      <map_modifier Shift="Off" />
      <map_unicode char="," />
   </define>
        </mappings>
        <repeater>
                <repeat delay="450" period="60"/>
        </repeater>
        <extensions>
                <define key="F12" kind="switch">
                        <modifier Shift="On"/>
                </define>
                <define key="All" kind="launch">
                        <modifier User1="On"/>
                </define>
        </extensions>
</keyhelper>
« Last Edit: July 19, 2005, 12:59:33 am by gdog »
You can tell a lot about a man by the condition of his shoes

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper Help...
« Reply #13 on: July 19, 2005, 08:04:45 am »
Here are the lnies that are mapping FN+N and FN+M to { and }

Code: [Select]








0x7b is the unicode number for { and 0x7d is for }. You can download the unicode charts from http://www.unicode.org/charts/

It appears that keyhelper doesn't care if you use the raw ascii or the unicode for the map code.

The direct link to keyhelperconf ipk is http://tbox.jpn.org/misc/dl.cgi?file=keyhe...0.3.0-1_arm.ipk

The application is very very easy to use and is in English too

Good Luck

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

gdog

  • Full Member
  • ***
  • Posts: 246
    • View Profile
Keyhelper Help...
« Reply #14 on: July 19, 2005, 10:44:06 am »
Quote
Here are the lnies that are mapping FN+N and FN+M to { and }

Code: [Select]








0x7b is the unicode number for { and 0x7d is for }. You can download the unicode charts from http://www.unicode.org/charts/

It appears that keyhelper doesn't care if you use the raw ascii or the unicode for the map code.

The direct link to keyhelperconf ipk is http://tbox.jpn.org/misc/dl.cgi?file=keyhe...0.3.0-1_arm.ipk

The application is very very easy to use and is in English too

Good Luck

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88802\"][{POST_SNAPBACK}][/a][/div]


Thanks a million Stu. Those were exactly what I was looking for.

gdog
You can tell a lot about a man by the condition of his shoes