Date: Tue, 11 Oct 2005 15:06:33 +0200 From: guru@Sisis.de To: freebsd-questions@freebsd.org Subject: X-application for sending keystrokes, xse? Message-ID: <20051011130633.GA9485@rebelion.Sisis.de>
next in thread | raw e-mail | index | archive | help
Hello, I've some X-application (only in binary form) written in Java which presents the official Spanish dictionary; having it up&running it says about itself the below attached 'xprop' output and if someone wants to see a small screen shoot it is here: http://www.sisis.de/~guru/drae.jpg In the small input field one can type Spanish words and the X-application presents the page from the dictionary for the word; my idea is to connect this to my editor 'vi' with a small key macro to send over the actual word where the cursor is to this application as it was typed in in the input field; like this: map <F8> "xywo<ESC>"xp:.,.w !xsendkeys `cat` > /dev/null 2>/dev/null ; ^Mu" Is there some 'xsendkeys' in FreeBSD which can send the keys 'hablar' to the X-application calling $ xsendkeys -name "Diccionario de la lengua espaņola" hablar Thx in advance matthias $ xprop -name "Diccionario de la lengua espaņola" _KDE_WM_WINDOW_OPACITY(CARDINAL) = 3221225471 _NET_WM_ICON_GEOMETRY(CARDINAL) = 588, 1004, 200, 23 _NET_WM_STATE(ATOM) = WM_STATE(WM_STATE): window state: Normal icon window: 0x0 _NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE _KDE_NET_WM_FRAME_STRUT(CARDINAL) = 4, 4, 25, 4 _NET_WM_DESKTOP(CARDINAL) = 0 _KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 23282720 _MOTIF_WM_MESSAGES(ATOM) = _MOTIF_WM_OFFSET WM_PROTOCOLS(ATOM): protocols _MOTIF_WM_MESSAGES, WM_DELETE_WINDOW _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0xffffffff, 0x1, 0xffffffff, 0x0 WM_LOCALE_NAME(STRING) = "es_ES.ISO8859-1" WM_CLASS(STRING) = "AWTdialog", "VendorShell" WM_HINTS(WM_HINTS): Client accepts input or input focus: True Initial state is Normal State. WM_NORMAL_HINTS(WM_SIZE_HINTS): program specified location: 551, 421 program specified size: 289 by 180 window gravity: NorthWest WM_CLIENT_MACHINE(STRING) = "rebelion.Sisis.de" WM_NAME(STRING) = "Diccionario de la lengua espaņola" -- Matthias Apitz / Sisis Informationssysteme GmbH Gruenwalder Weg 28g / D-82041 Oberhaching Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211 http://www.sisis.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051011130633.GA9485>