delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/06/13:29:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20090306175850.GF32089@trikaliotis.net>
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> <0105D5C1E0353146B1B222348B0411A29A674EDB AT NIHMLBX02 DOT nih DOT gov> <20090306175850 DOT GF32089 AT trikaliotis DOT net>
Date: Fri, 6 Mar 2009 13:29:02 -0500
Message-ID: <183c528b0903061029h41a9d3f4h8f976e6b77d3ba7d@mail.gmail.com>
Subject: Re: How can I assign a hotkey to run a cygwin/bash script?
From: Brian Mathis <brian DOT mathis AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Fri, Mar 6, 2009 at 12:58 PM, Spiro Trikaliotis
<an-cygwin AT spiro DOT trikaliotis DOT net> wrote:
> Hello,
>
> * On Fri, Mar 06, 2009 at 12:07:37PM -0500 Buchbinder, Barry (NIH/NIAID) =
[E] wrote:
>
>> 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"). =A0In none was the option to set a hotkey grayed out.
>
> They do not need to be grayed out: You can set these option.
> Unfortunately, they do not have any effect. This is something different.
>
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0I 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.
>
> Well, we can think about many things: However, this is not the way it
> works on Windows, obviously.


Windows keeps a systemwide table of hotkeys, and when one is pressed
Windows runs whatever is in the table as the target.  If the target is
a shortcut, it opens the shortcut.  If it's a document, it opens the
document.  Whatever the type of the file is that the target is
pointing to, Windows will execute it as if you had double-clicked on
the file.  The filetype must have a program associated with it in
order for it to launch correctly.

Even though there is a field in the shortcut property dialog box for
hot key, it is not tied to the shortcut at all.  When you set the
hotkey in a shortcut, it updates the systemwide table and that's it.


>> BTW, if assigning the hotkey after the shortcut is in "c:\home\wrk"
>> really doesn't work, I suspect that the Start Menu may.
>
> Yes, the start menu works. This was news for me, too. In quick start,
> it does not work, though.
>
> So, start menu and desktop work. Anything else? ;)
>
> Best regards,
> Spiro.

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