OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Mapping A Keystroke To Qcop Commands, In Cacko1.23
Snappy
post Jan 31 2007, 06:11 AM
Post #1





Group: Members
Posts: 793
Joined: 28-November 04
From: NM, US, sometimes Asia
Member No.: 5,633



I've written a small script for toggling the input panel. (ime.sh)
It runs fine and now I'm trying to bind a keystroke to call it.

In keyhelper.conf, I added an additional line as follows

QUOTE
...
[Launch]
...
F26 = @qcop QPE/System 'execute(QString)' ime.sh
...


When I press Home+FirstJapKey (the one next to Ctrl), nothing happens. If I bind it as below, it calls up zeditor successfully.

QUOTE
...
[Launch]
...
F26 = Applications/zeditor
...


Anyone have any idea what is wrong with my call?
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Snappy
post Jan 31 2007, 08:26 AM
Post #2





Group: Members
Posts: 793
Joined: 28-November 04
From: NM, US, sometimes Asia
Member No.: 5,633



hmmm ... strangely, it seem to work, as in it blanks the screen but does not do anything.
Occassionally, home+key do not work altogether.

btw, my script ime.sh is as below
(I created a empty file at /home/tmp/ime_off)
CODE
#!/bin/sh
if [ -f /home/tmp/ime_on ]; then
    qcop    QPE/TaskBar 'hideInputMethod()'
    mv /home/tmp/ime_on /home/tmp/ime_off
else
    qcop    QPE/TaskBar 'showInputMethod()'
    mv /home/tmp/ime_off /home/tmp/ime_on
fi
Go to the top of the page
 
+Quote Post
tml
post Jan 31 2007, 11:37 AM
Post #3





Group: Members
Posts: 105
Joined: 3-August 05
Member No.: 7,766



QUOTE(Snappy @ Jan 31 2007, 06:26 PM)
hmmm ... strangely, it seem to work, as in it blanks the screen but does not do anything.
[/code]
*


It probably tries to change resolution or so. The execute command tries to start a qpe qpe application which a sh script is not, I think. I'd say you'd have to wrap the script into something qtopian but maybe there's a simpler solution.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th October 2014 - 06:57 PM