Author Topic: How To Enable/toggle Soft Key Input Via Hard Key  (Read 3879 times)

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
How To Enable/toggle Soft Key Input Via Hard Key
« on: June 14, 2006, 08:51:17 am »
Hi all,

Anyone knows how to enable or toggle the soft key input via hard key?

Currently one needs to tap on the soft keyboard "button" on the taskbar to display the input panel. Is there a way to do this with a hard key?

I would love to be able to do so for MurphyTalk in Cacko 1.23 full.

Thanks for any suggestions or tips.
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #1 on: June 14, 2006, 03:43:28 pm »
you could write a script using qcop to "simulate" a tap then use keyhelper to tie it to the key in question, or skip the script and use qcop directly with keyhelper.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #2 on: June 14, 2006, 07:48:01 pm »
Thanks bam ... tap simulation via script and qcop ... let me google them ...
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #3 on: June 23, 2006, 10:06:26 pm »
qcop QPE/InputHelper mouse(QString) "click 600 400" "wait xxxx" "click X Y" "wait xxxx'....etc. You get the idea, I have done this with keyhelper already so it works, as long as inputhelper applet is installed.
« Last Edit: June 23, 2006, 11:52:23 pm by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #4 on: June 24, 2006, 08:48:58 pm »
Quote
qcop QPE/InputHelper mouse(QString) "click 600 400" "wait xxxx" "click X Y" "wait xxxx'....etc. You get the idea, I have done this with keyhelper already so it works, as long as inputhelper applet is installed.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132654\"][{POST_SNAPBACK}][/a][/div]

Any documentation on this so that I know what and where to put these settings?

I'm figuring that its keyhelper.xml but could not find any documentation anywhere.

EDIT:

Scratch that ... found some articles on that qcop thingie ... reading ...
« Last Edit: June 24, 2006, 08:53:44 pm by Snappy »
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #5 on: June 24, 2006, 10:06:29 pm »
keyhelper.conf, or a script. you ca set a quicklauch key for that command and it works well.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #6 on: June 25, 2006, 02:32:00 am »
Quote
keyhelper.conf, or a script. you ca set a quicklauch key for that command and it works well.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132736\"][{POST_SNAPBACK}][/a][/div]

I presume you mean that it can be called via a script ...
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #7 on: June 25, 2006, 09:05:21 am »
ok, I'm half-way there ...

$ qcop QPE/TaskBar 'showInputMethod()'

this shows the InputMethod nicely while a hideInputMethod hides it.

There's no toggle, though I presume there should be a query call for the current state ... still looking through qtopia documentation.

There is one showInputMethod(QString) thingie which allows you to show the input method you want, but I cannot figure out what to put into QString ... I tried showInputMethod('MurphyTalk') but it returns a Syntax error in parameter type

http://zaurus-ja.sourceforge.jp/imkit/README-0.4.0.txt
http://doc.trolltech.com/qtopia1.6/html/global.html
http://doc.trolltech.com/qtopia2.0/html/qcop.html

EDIT:
I figure out I can call using

$ qcop QPE/TaskBar 'showInputMethod(QString)' XYZ

... I just don't know what to use for XYZ to indicate MurphyTalk ... tried murphytalk, MurphyTalk, murphypinyin etc ... ideas?
« Last Edit: June 25, 2006, 09:34:40 am by Snappy »
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #8 on: July 22, 2006, 10:50:50 pm »
what is murphytalk? an application?
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://
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #9 on: July 23, 2006, 07:21:33 am »
There is an app that will watch the qcop messages and write the to a log for you as they are being called by button/screen clicks etc.

Sorry can't remember the name right now - but something like qcoptest or qcopwatch - There have been posts about it in these forums before

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

chyang

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
    • http://mail.ustc.edu.cn/~chyang/
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #10 on: July 23, 2006, 07:33:25 am »
From the README.txt you gave:
 showInputMethod(QString)
    activate specified IM (only Qtopia 1.6 or later)
    e.g.)
    qcop QPE/TaskBar 'showInputMethod(QString)' qhandwriting

It seems that current Qtopia on Z seems to be not high enough to support this functionality. I checked my C3000, it's only 1.5.4.
SL-C3200+Symbol CF WIFI+Corsair 2GB SD
SL-5500+Sharp-3.13 ROM+Viking 512MB CF+Kinston 256MB SD
[img]http://sunsetyang.googlepages.com/c3200.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://sunsetyang.googlepages.com/5500.gif\" border=\"0\" class=\"linked-sig-image\" /]
Socket CF Bluetooth + EagleTec CF Lan Card + EagleTec CF Modem
Histroy:
[SL-C3000 Cacko 1.23 Beta 1] Sold on 2006/07/27
MA701 CF WIFI + EagleTec CF Bluetooth + D-Link DCF-660W WIFI
[SL5500+Sharp-3.13 ROM+SimpleTech 64MB CF+Hagiwara 128MB SD] Lost on 18,March,04

chyang

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
    • http://mail.ustc.edu.cn/~chyang/
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #11 on: July 23, 2006, 07:50:45 am »
just find one:
qcop   QPE/TaskBar 'rotateInputMethod()'
qcop QPE/InputHelper 'mouse(QString)' "click 600 410 left"

You will be able to activate the software keyboard.
qcop QPE/InputHelper 'mouse(QString)' "click 600 350 left"
It will hide the keyboard.
SL-C3200+Symbol CF WIFI+Corsair 2GB SD
SL-5500+Sharp-3.13 ROM+Viking 512MB CF+Kinston 256MB SD
[img]http://sunsetyang.googlepages.com/c3200.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://sunsetyang.googlepages.com/5500.gif\" border=\"0\" class=\"linked-sig-image\" /]
Socket CF Bluetooth + EagleTec CF Lan Card + EagleTec CF Modem
Histroy:
[SL-C3000 Cacko 1.23 Beta 1] Sold on 2006/07/27
MA701 CF WIFI + EagleTec CF Bluetooth + D-Link DCF-660W WIFI
[SL5500+Sharp-3.13 ROM+SimpleTech 64MB CF+Hagiwara 128MB SD] Lost on 18,March,04

chyang

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
    • http://mail.ustc.edu.cn/~chyang/
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #12 on: July 23, 2006, 07:52:43 am »
Issue:
qcop QPE/InputHelper 'mouse(QString)' "click 120 450 left"

will show the inputmethod selection.
SL-C3200+Symbol CF WIFI+Corsair 2GB SD
SL-5500+Sharp-3.13 ROM+Viking 512MB CF+Kinston 256MB SD
[img]http://sunsetyang.googlepages.com/c3200.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://sunsetyang.googlepages.com/5500.gif\" border=\"0\" class=\"linked-sig-image\" /]
Socket CF Bluetooth + EagleTec CF Lan Card + EagleTec CF Modem
Histroy:
[SL-C3000 Cacko 1.23 Beta 1] Sold on 2006/07/27
MA701 CF WIFI + EagleTec CF Bluetooth + D-Link DCF-660W WIFI
[SL5500+Sharp-3.13 ROM+SimpleTech 64MB CF+Hagiwara 128MB SD] Lost on 18,March,04

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
How To Enable/toggle Soft Key Input Via Hard Key
« Reply #13 on: July 27, 2006, 01:48:43 am »
Quote
Issue:
qcop QPE/InputHelper 'mouse(QString)' "click 120 450 left"

will show the inputmethod selection.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136157\"][{POST_SNAPBACK}][/a][/div]

Actually qcop QPE/TaskBar 'showInputMethod()' would show the inputmethod selection already.
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>