delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/06/12:08:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Fri, 6 Mar 2009 12:07:37 -0500
Subject: RE: How can I assign a hotkey to run a cygwin/bash script?
Message-ID: <0105D5C1E0353146B1B222348B0411A29A674EDB@NIHMLBX02.nih.gov>
References: <8p21r4pui1dgbl8q2ovpvcsharaburle84 AT 4ax DOT com> <49B09CE9 DOT 1060500 AT gmail DOT com> <0A4ADB2148EA2948B9FFFB980FA0D22F0589F52F AT djexchange DOT dickey-john DOT com> <49B1470C DOT 3000107 AT gmail DOT com> <0A4ADB2148EA2948B9FFFB980FA0D22F0589F58F AT djexchange DOT dickey-john DOT com> <49B14D88 DOT 4020707 AT gmail DOT com>
In-Reply-To: <49B14D88.4020707@gmail.com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Dave Korn wrote on Friday, March 06, 2009 11:21 AM:
> Arun Biyani wrote:
>=20
>> Yes. Meant exactly that. I created a shortcut on desktop for mintty.
>> Assigned it the key "ctrl+alt+M". I like my desktop to be
>> uncluttered. So after assigning the key, I moved the shortcut icon
>> into my work folder "/c/home/wrk". The hotkey stopped working. I
>> then moved the icon back to the desktop and it worked again. Now,
>> all my hot-key-assigned shortcuts sit in a folder "shortcuts" on the
>> desktop and they all work.
>=20
>   Thanks for the tip! :)

While not much done my MS would shock me, that seems sort of strange.

I looked at the properties of shortcuts on my Desktop, in the Start Menu,
and in a directory outside of "C:\Documents and Settings" (the equivalent
of "c:\home\wrk").  In none was the option to set a hotkey grayed out.
(Granted, MS might have forgotten to do that.)

What happens when you assign the hotkey *after* the shortcut is in
"c:\home\wrk"?

Think about it.  When you assign the shortcut to a hotkey, you are asking
Windows to run the shortcut after you hit the hotkey.  I would think that
Windows keeps a table of hotkeys and shortcuts (not targets) and it looks
for the shortcut itself when you hit the hotkey so the shortcut's
contents can be read.  If you have moved the shortcut after assigning the
hotkey, Windows cannot find it and nothing happens.

BTW, if assigning the hotkey after the shortcut is in "c:\home\wrk"
really doesn't work, I suspect that the Start Menu may.

Of course, I neither use hotkeys (so I don't know from experience) nor
have I experimented by actually assigning a hotkey.  So YMMV.

Good luck.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019