|
|
2008-04-24
, 03:33
|
|
Posts: 5,795 |
Thanked: 3,151 times |
Joined on Feb 2007
@ Agoura Hills Calif
|
#12
|
| The Following User Says Thank You to geneven For This Useful Post: | ||
|
|
2008-04-24
, 03:44
|
|
Posts: 1,950 |
Thanked: 1,174 times |
Joined on Jan 2008
@ Seattle, USA
|
#13
|
In a tablet they would be more handy than ever because typing is more difficult than with a full-fledged keyboard.
What caused me to be less enthusiastic about this idea is that it was said to be primarily needed for typing in an xterm. I don't want it for typing in an xterm; I want it for typing in Notecase or other cool programs that we already have that could clearly be enhanced by macros.
There is, for example, an excellent web-based mind-mapping program called Mindmeister. It works pretty well on my N800, but a few key-hits are not available because they involve Ctrl keys or other keys the N800 doesn't have. So, I rarely use it on my N800. Macros would probably transform the Mindmeister experience.
|
|
2008-04-24
, 03:46
|
|
Posts: 1,950 |
Thanked: 1,174 times |
Joined on Jan 2008
@ Seattle, USA
|
#14
|
gxmessage + xte FTW?
I don't have time to rig it up right now, but it's really trivial.
Only suboptimal bit is launching....
|
|
2008-04-24
, 09:51
|
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#15
|
| The Following User Says Thank You to Benson For This Useful Post: | ||
|
|
2008-04-24
, 15:41
|
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#16
|
#!/bin/sh
pages=3
page=0
pagestem=/home/user/.menuizer/page
if [ "x$1" != x ] ; then
page=`expr "$1" % $pages`
fi
while true ; do
response=`gxmessage -center -borderless -nofocus -print -buttons "$(cat $pagestem$page)"',\\\\/,/\\\\' ""`
case "$response" in
'\/')
page=`expr \( $page + 1 \) % $pages`
;;
'/\')
page=`expr \( $page + $pages - 1 \) % $pages`
;;
*)
break
;;
esac
done
#echo $response
xte "str $response"
string1,string2,string3
|
|
2008-05-13
, 03:05
|
|
Posts: 1,950 |
Thanked: 1,174 times |
Joined on Jan 2008
@ Seattle, USA
|
#17
|
Well, with xte, anything that runs commands can do it; so any of Personal Menu, CmdNav, osso-statusbar-cpu, powerlaunch, and probably others will do. Trouble is, they don't give you the always-on-top window you want, so you have to launch them with the panel, or with the power button, in the case of powerlaunch.
|
|
2008-05-13
, 16:42
|
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#18
|
Description: Foo
Command: xte 'str Foo'
|
|
2008-05-13
, 17:28
|
|
Posts: 1,950 |
Thanked: 1,174 times |
Joined on Jan 2008
@ Seattle, USA
|
#19
|
Well, that only works if you're not running fullscreen... Else there's non-trivial cost to launching it. So I was thinking a persistent, always-on-top window would be best.
Oh, that attempt... Sorry to leave you in suspense; it was an utter flop. What's there is the best you're gonna get by this approach. Did you try it?
Personally, if I wanted this kinda thing, I'd be inclined to use Personal menu for regular menu stuff, and stack command-navigator full of typing shortcuts like this:Description: Foo
Command: xte 'str Foo'
Hello
xte 'str Hello'
sh: xte: not found
|
|
2008-05-13
, 17:52
|
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#20
|
I copied (as root, of course) the xte binary to /usr/bin or some such. You could probably also (if not running low on space, and scared like I was at the time) just 'make install' (root, again) from the xautomation-1.02 directory. I recommend that approach, but warn that I did not try it...
I don't have time to rig it up right now, but it's really trivial.
Only suboptimal bit is launching....