From owner-freebsd-questions@FreeBSD.ORG Tue Oct 11 13:07:10 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC1DE16A43C for ; Tue, 11 Oct 2005 13:07:10 +0000 (GMT) (envelope-from guru@Sisis.de) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A2AC43D6A for ; Tue, 11 Oct 2005 13:07:00 +0000 (GMT) (envelope-from guru@Sisis.de) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id PAA22675 for ; Tue, 11 Oct 2005 15:05:43 +0200 (CEST) (envelope-from guru@Sisis.de) From: guru@Sisis.de Received: from hermes.sisis.de(193.31.10.38) by hunter.Sisis.de via smap (V2.1) id xmaa22671; Tue, 11 Oct 05 15:05:21 +0200 Received: from rebelion.Sisis.de (rebelion.Sisis.de [193.31.10.34]) by hermes.sisis.de (8.8.8/8.8.8) with ESMTP id PAA23856 for ; Tue, 11 Oct 2005 15:06:35 +0200 (CEST) (envelope-from guru@Sisis.de) Received: (from guru@localhost) by rebelion.Sisis.de (8.13.3/8.13.3/Submit) id j9BD6Xa6009690 for freebsd-questions@freebsd.org; Tue, 11 Oct 2005 15:06:33 +0200 (CEST) (envelope-from guru@Sisis.de) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to guru@Sisis.de using -f Date: Tue, 11 Oct 2005 15:06:33 +0200 To: freebsd-questions@freebsd.org Message-ID: <20051011130633.GA9485@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE (i386) Subject: X-application for sending keystrokes, xse? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: guru@Sisis.de List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 13:07:10 -0000 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 "xywo"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/