From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dwolffxx@panix.com (David Wolff) Newsgroups: gmane.emacs.help Subject: Open existing instance of app from Emacs lisp? Date: Sat, 9 Aug 2008 00:29:51 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1218242532 26794 80.91.229.12 (9 Aug 2008 00:42:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2008 00:42:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 09 02:43:04 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRcXu-0007mE-PA for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Aug 2008 02:43:02 +0200 Original-Received: from localhost ([127.0.0.1]:44217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRcWz-0006mX-0V for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 20:42:05 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader1.panix.com 1218241791 24141 166.84.1.3 (9 Aug 2008 00:29:51 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sat, 9 Aug 2008 00:29:51 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: news.stanford.edu gnu.emacs.help:160991 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56338 Archived-At: Hi all, I used "w32-shell-execute" to open apps, documents, and folders in a very nice little menu, eg: (w32-shell-execute "open" "C:/WINDOWS/System32/calc.exe") Then I discovered that, for applications, this always opens a new instance instead of switching to an existing copy. Just what I need, 14 copies of Calculator running. :-) So okay, I can use w32-window-exists-p to see if the app is already running. Now is there a way to activate the app from lisp? Thanks -- David (Remove "xx" to reply.)