all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dwolffxx@panix.com (David Wolff)
To: help-gnu-emacs@gnu.org
Subject: Open existing instance of app from Emacs lisp?
Date: Sat, 9 Aug 2008 00:29:51 +0000 (UTC)	[thread overview]
Message-ID: <g7iodv$nid$1@reader1.panix.com> (raw)

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.)


             reply	other threads:[~2008-08-09  0:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-09  0:29 David Wolff [this message]
2008-08-09 12:42 ` Open existing instance of app from Emacs lisp? B. T. Raven
2008-08-12  2:25   ` David Wolff
2008-08-12  2:56     ` Ian Swainson
     [not found]     ` <mailman.16433.1218509611.18990.help-gnu-emacs@gnu.org>
2008-08-13  0:53       ` David Wolff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='g7iodv$nid$1@reader1.panix.com' \
    --to=dwolffxx@panix.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.