I can't picture what you are trying to accomplish... or maybe I'm thinkin a little to hard about it... :-)
Like a script that maxamizes a minimized window... and if that script going to be mapped to a key? So basicly it would be like a "reverse" show desktop?
Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145112\"][{POST_SNAPBACK}][/a][/div]
Yes, kind of:
The application keys for "Calendar", "Address" etc. are configured to open the PIM apps KO/PI, KA/PI etc.
However, if KO/PI is started and minimized, and if I then press the "Calendar" key again, another instance of KO/PI is started, which should not happen.
Instead the other window, which is probably minimized or in the background (otherwise the user would have seen it) should be raised to the foreground and get the focus.
I thought about a script structure like
ps | grep -v "grep" | grep kopi
if [ $? -ne 0 ]; then
kopi
else
"raise_window kopi"
fi
I would then assign the applicatoin key to that script rather than to the kopi binary.
QTopia has this feature built-in, and especially for PDA-style use of the Zaurus it is a very important feature. Nobody wants to wait some minutes to load a second instance of KO/PI when he presses the "calendar" key to have a quick look at the calendar.
daniel