From legends2k@yahoo.com Fri May 22 10:39:35 2009 Return-Path: X-Original-To: gtk-win32-list@gnome.org Delivered-To: gtk-win32-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D0807500DB for ; Fri, 22 May 2009 10:39:35 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.979 X-Spam-Level: X-Spam-Status: No, score=-2.979 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_SORBS_WEB=0.619] X-Amavis-OS-Fingerprint: FreeBSD 6.x (1) (up: 11524 hrs), (distance 10, link: ethernet/modem), [209.191.68.156] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 89fEyOB8wLRh for ; Fri, 22 May 2009 10:39:28 +0000 (GMT) Received: from web34707.mail.mud.yahoo.com (web34707.mail.mud.yahoo.com [209.191.68.156]) by menubar.gnome.org (Postfix) with SMTP id 6AD507506FF for ; Fri, 22 May 2009 10:39:19 +0000 (GMT) Received: (qmail 9368 invoked by uid 60001); 22 May 2009 10:39:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1242988758; bh=uA0uR3pNKiEIijyi4t7YTB8zd3d51Q+8CTPVjnnqnc0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=YdAlsVRpzubtROG3GWjw1p5yUOPolcZTS4rjKx1utrOSjmR/4yj0ZmEjW4PyhgJMeg55pmw9yfYsdU1QNKXuyh2xzIEiu4kLrOwJTtYii4YNEyeK2Gj4mwQ7S2ka1WIVi59oihbgnSG6eAq5UrhDU3rtJb1UlwQ5jZ8tT9m71wI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=kkhbbMZnC6cah7pkd5JpQmG2EyHVf+Km1fi1SsatPLlmlpiX27hz8QzWuvFFBGRyJzW1kkbormhS3UqLh6txdMiqnp3LQn5+nOXuilh+eaFDqTJ0ngbYY1wvtlDtcDbeLSJiXzUYTyGFzuQeHxaz71F18KId6nzTNhDO5bDeKn8=; Message-ID: <709378.9226.qm@web34707.mail.mud.yahoo.com> X-YMail-OSG: 0H.C3DIVM1kIUtTq5fxZmAx2U8pAVyZrkR7ZsDGJg4yGYW_JahffeyYc4ejeOO0Qr549V_H7NNzaJGUJWPOO5kVGJBm81uoTlvGwtLO1gOFIlNZaG0AMJR2IUfTI.0US.S9mWO7rO6M6YWlpcDI9lJSuWIi5NN94t3DMIO73ZX0moA1ezMtH9GN_10nnIxKsqdnrp7Cr2oEx1unlUAFxCvV3ZqjvFKHf0qoH_IrZtJ5Z8vKChqx6mYW2RJPNPOs2woHuqK2wJKAcQbbltpeTu5bIDY.rLln8KNdgX6eYfNVQ3n63mYaeQ4C06hyjH2M9vbVQM0whQr0tl6JCZRVZMW131nuk Received: from [220.227.254.130] by web34707.mail.mud.yahoo.com via HTTP; Fri, 22 May 2009 03:39:18 PDT X-Mailer: YahooMailRC/1277.43 YahooMailWebService/0.7.289.10 Date: Fri, 22 May 2009 03:39:18 -0700 (PDT) From: Sundaram To: gtk-win32-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1468034230-1242988758=:9226" Subject: [gtk-win32] [Win32] Getting sel. text on any window X-BeenThere: gtk-win32-list@gnome.org X-Mailman-Version: 2.1.10 Precedence: list Reply-To: Gtk+ on win32 platform packaging and distribution discussion List-Id: Gtk+ on win32 platform packaging and distribution discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2009 10:39:35 -0000 --0-1468034230-1242988758=:9226 Content-Type: text/plain; charset=us-ascii Hi, Is there a way to get the selected text on any window in Windows platform? On Linux or any platform with X Server, I get the Primary Clipboard data and do this, while on Windows is there a way to do it?; this is required for porting Artha (an open thesaurus) from Linux to Windows. Thank you! Regards Sundaram --0-1468034230-1242988758=:9226 Content-Type: text/html; charset=us-ascii
Hi,
Is there a way to get the selected text on any window in Windows platform? On Linux or any platform with X Server, I get the Primary Clipboard data and do this, while on Windows is there a way to do it?; this is required for porting Artha (an open thesaurus) from Linux to Windows.

Thank you!

Regards
Sundaram

--0-1468034230-1242988758=:9226-- From tlillqvist@gmail.com Fri May 22 11:03:19 2009 Return-Path: X-Original-To: gtk-win32-list@gnome.org Delivered-To: gtk-win32-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8C59B75007E for ; Fri, 22 May 2009 11:03:19 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (firewall!) (up: 8412 hrs), (distance 14, link: (Google 2)), [74.125.92.24] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sMhAIntFnuNa for ; Fri, 22 May 2009 11:03:14 +0000 (GMT) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by menubar.gnome.org (Postfix) with ESMTP id CF02375000A for ; Fri, 22 May 2009 11:03:05 +0000 (GMT) Received: by qw-out-2122.google.com with SMTP id 8so1040797qwh.9 for ; Fri, 22 May 2009 04:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type:content-transfer-encoding; bh=aeS7yunEBmQ5MWVswLx3ZwtJ/wIIQGOlLFiFZaRkUvw=; b=FFH+BFbckltGX2Y+lTKQcDHUYVwf4QqtFQz5CEwQxxk68yhFXIxLSc10Dh9NNngE/a aAQQuWWqTr+nwhPAL7Fidvq42VSCT6rkFXljYmXmen19umyREqduuRccFMfiUomRM6Iu tUG2YfMF4RUOXR4HWNAuwi5XXGN3pkujjwoKs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=Pducr2ZzsgH3ejoc3/ybC7tjawy2ngnRriTB7jfAK58MFSv5GwxABbF7uXyz7t+ZxM 32jxbJ+x0RvCZZMrtdx+Ybtonp+/YS5z/rMEDInZwKRmW6J4yQHRmSXG19Ye7fNOEjtc 89/+aj7tnz73FPSJlRPIQhxJlfJEYflAbeIlQ= MIME-Version: 1.0 Sender: tlillqvist@gmail.com Received: by 10.224.73.193 with SMTP id r1mr3721168qaj.313.1242990181057; Fri, 22 May 2009 04:03:01 -0700 (PDT) In-Reply-To: <709378.9226.qm@web34707.mail.mud.yahoo.com> References: <709378.9226.qm@web34707.mail.mud.yahoo.com> From: Tor Lillqvist Date: Fri, 22 May 2009 14:02:41 +0300 X-Google-Sender-Auth: feda0e7f318d126e Message-ID: To: "Gtk+ on win32 platform packaging and distribution discussion" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [gtk-win32] [Win32] Getting sel. text on any window X-BeenThere: gtk-win32-list@gnome.org X-Mailman-Version: 2.1.10 Precedence: list Reply-To: Gtk+ on win32 platform packaging and distribution discussion List-Id: Gtk+ on win32 platform packaging and distribution discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2009 11:03:19 -0000 > Is there a way to get the selected text on any window in Windows platform? In general I would say no, as selection and copy to clipboard are two different concepts on Windows. It might be possible through knowledge of the internal API of some particular window classes, like Microsoft's "Rich Edit Controls", look for the EM_GETSELTEXT message. (Thats's just what I see in the documentation; I have never used that myself.) --tml