Author Topic: Keyhelper & Menu(custom List)  (Read 3896 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Keyhelper & Menu(custom List)
« on: August 03, 2005, 07:16:37 am »
anyone got this to work, I get select and switch...no problem but this custom menu seems to be eluding me.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper & Menu(custom List)
« Reply #1 on: August 03, 2005, 10:54:20 am »
What do you want to do?

Here is an example from my setup

in the extensions section of keyhelper.xml make sure you have something like
Code: [Select]


To have a key mapped to the menu button, this exapmle is the Mail key

Then in keyhelper.conf, have a menu section that looks like this
Code: [Select]
[Menu]
01_M = Network/kopiemail
02_KeyHelper.xml(&X) = Accessories/zeditor  /home/zaurus/Settings/keyhelper.xml
03_KeyHelper.conf(&C) = Accessories/zeditor /home/zaurus/Settings/keyhelper.conf
04_KH_reload(&R) = @qcop    QPE/KeyHelper reload()

The numbers are the order of the menu items, the text that comes between _ and the = sign is what is show on the menu, the &+letter makes that letter on the physical keyboard a shortcut for that menu entry.

Anything that comes after the = sign is the command for that menu. As the example hopefully shows you need to add the folder in /home/QtPalmtop/apps/ that the application lives. ie kopiemail lives under the Network tab so it needs Network/kopiemail, while zeditor lives in the Accessories tab.

Any text after the command are used as arguments for the command, so the 2nd entry opens the keyhelper.xml file in zeditor.

The final entry shows how to use qcop command in menu (in this case I could as easily used khctl reload). If you want an entry to restart qtopia you would add something like
Code: [Select]
05_Restart = @qcop  QPE/System restart()
The entries in the menu will have the icon of the app that normal shows in the taskbar when the app is running.

Let me know if any of this is not clear

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

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper & Menu(custom List)
« Reply #2 on: August 03, 2005, 10:56:47 am »
OOPS, forgot to mention that Cancel will close the menu if you open it up accidently.

Also unlike keyhelper.xml, you don't have to reload keyhelper to see the changes, it appears that keyhelper parses the keyhelper.conf file everytime you press the key mapped to "menu"

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

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Keyhelper & Menu(custom List)
« Reply #3 on: August 03, 2005, 02:51:43 pm »
yea I wanted Fn+Menu(F11) to open KH(Menu) but cant seem to get it to work.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper & Menu(custom List)
« Reply #4 on: August 03, 2005, 08:56:20 pm »
Quote
yea I wanted Fn+Menu(F11) to open KH(Menu) but cant seem to get it to work.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90639\"][{POST_SNAPBACK}][/a][/div]

Ahh, I'm not sure you can have FN+Menu as the menu key. I'll have to have a look through the stuff I have on keyhelper and see if I can get it to work

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

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Keyhelper & Menu(custom List)
« Reply #5 on: August 04, 2005, 12:54:47 am »
I have tried multiple different key, no joy, but select and switch works....

I have added the [Menu] and 01_balh=blah to the conf then assigned the key under extentions to "menu" and still no go.....I must be doing something wrong, dunno what yet though, btw I was tring to use the 4th key over from the Fn key.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper & Menu(custom List)
« Reply #6 on: August 04, 2005, 10:27:42 am »
I can't get FN key to work with any of "special" keys (menu, home etc) but I can get Shift or Ctrl or Alt to work with them. Just add <modifier Shift="On"/> replacing Shift with Ctrl or Alt as necessary.

If you want to post or attach your keyhelper.xml or keyhelper.conf I'll try them out on my machine and see if I can work out what is missing.

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

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Keyhelper & Menu(custom List)
« Reply #7 on: August 04, 2005, 02:54:46 pm »
ok partailly solved, I got the qcop command to actually work, so quick question the Applications/[program], the "applications" is actually the tab correct? and the program is the program under that tab?


Edit: A: yes it is, well I'm off and running, finally. Thanks Stu for all the help , now to tackle all those 20XX codes, ive got like 5 already, is there a master list compiled already?
« Last Edit: August 04, 2005, 03:08:24 pm by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Keyhelper & Menu(custom List)
« Reply #8 on: August 04, 2005, 09:55:02 pm »
Quote
Thanks Stu for all the help , now to tackle all those 20XX codes, ive got like 5 already, is there a master list compiled already?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90774\"][{POST_SNAPBACK}][/a][/div]

Glad I can help.

AFAIK there is no list of the 20xx codes (FN+<key> combo for those wondering) but we could probably start one in the how-to wiki

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

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Keyhelper & Menu(custom List)
« Reply #9 on: August 05, 2005, 12:01:18 am »
I will post the codes I have so far, thenothers can add as we go.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

gojira

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Keyhelper & Menu(custom List)
« Reply #10 on: August 05, 2005, 12:51:13 am »
Quote
Quote
now to tackle all those 20XX codes, ive got like 5 already, is there a master list compiled already?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
AFAIK there is no list of the 20xx codes (FN+<key> combo for those wondering) but we could probably start one in the how-to wiki
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90810\"][{POST_SNAPBACK}][/a][/div]

I made an ascii-art table of all the key combinations for the 860, but the code formatting is broken on this board (doesn't preserve whitespace), and text files can't be uploaded to the wiki ([a href=\"https://www.oesf.org/forums/index.php?showtopic=6926&view=findpost&p=64847]see earlier post[/url]).  I'll try attaching it here:
Zaurus SL-C3200 Debian EABI / Sharp ROM (tetsu v18j), Socket CF Bluetooth (Rev E), BT747 GPS, Canon K30225 CF Wifi.  RIP: Zaurus SL-C860 Sharp ROM (1.40JP).

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Keyhelper & Menu(custom List)
« Reply #11 on: August 05, 2005, 06:48:52 am »
I think we have a good start, I will see if the codes hold true for the 3100, my guess is yes, but I will check anyways, thanks bro!
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Keyhelper & Menu(custom List)
« Reply #12 on: August 05, 2005, 04:29:42 pm »
back t the list dealie with KH, I will make a small tutorial on submenus, its way cool, all the other nfo I found wasnt in english, bad for those who are "Japanese Challenged", like myself
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder