Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Using ; and / as global hotkeys
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ram Rachum  
View profile  
 More options Aug 29 2012, 5:07 am
From: Ram Rachum <ram.rac...@gmail.com>
Date: Wed, 29 Aug 2012 02:07:33 -0700 (PDT)
Local: Wed, Aug 29 2012 5:07 am
Subject: Using ; and / as global hotkeys

Hello all!

I'd like to use keys ; and / as global hotkeys. Does anyone have a clue
what their codes are?

Thanks,
Ram.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cody  
View profile  
 More options Aug 29 2012, 8:41 am
From: Cody <codyprec...@gmail.com>
Date: Wed, 29 Aug 2012 06:41:06 -0600
Local: Wed, Aug 29 2012 8:41 am
Subject: Re: [wxPython-users] Using ; and / as global hotkeys
print ord(';')
print ord('/')


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ram Rachum  
View profile  
 More options Aug 29 2012, 8:46 am
From: Ram Rachum <r...@rachum.com>
Date: Wed, 29 Aug 2012 15:45:38 +0300
Local: Wed, Aug 29 2012 8:45 am
Subject: Re: [wxPython-users] Using ; and / as global hotkeys

Doesn't work.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cody  
View profile  
 More options Aug 29 2012, 8:50 am
From: Cody <codyprec...@gmail.com>
Date: Wed, 29 Aug 2012 06:50:03 -0600
Local: Wed, Aug 29 2012 8:50 am
Subject: Re: [wxPython-users] Using ; and / as global hotkeys

On Wed, Aug 29, 2012 at 6:45 AM, Ram Rachum <r...@rachum.com> wrote:
> Doesn't work.

What doesn't work?

The ord function certianly returns the character codes of those characters.

If thats not what your looking for then I don't know what "Does anyone
have a clue what their codes are?" means and you  may want to
elaborate further.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ram Rachum  
View profile  
 More options Aug 29 2012, 8:53 am
From: Ram Rachum <r...@rachum.com>
Date: Wed, 29 Aug 2012 15:52:53 +0300
Local: Wed, Aug 29 2012 8:52 am
Subject: Re: [wxPython-users] Using ; and / as global hotkeys

Sorry, I meant codes in the context of setting a global hotkey. i.e., the
codes that I need to pass to RegisterHotKey.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cody  
View profile  
 More options Aug 29 2012, 9:20 am
From: Cody <codyprec...@gmail.com>
Date: Wed, 29 Aug 2012 08:20:32 -0500
Local: Wed, Aug 29 2012 9:20 am
Subject: Re: [wxPython-users] Using ; and / as global hotkeys

On Wed, Aug 29, 2012 at 7:52 AM, Ram Rachum <r...@rachum.com> wrote:
> Sorry, I meant codes in the context of setting a global hotkey. i.e., the
> codes that I need to pass to RegisterHotKey.

RegisterHotKey only works under Windows:

http://docs.wxwidgets.org/2.8/wx_wxwindow.html#wxwindowregisterhotkey
http://wiki.wxpython.org/RegisterHotKey
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Gavana  
View profile  
 More options Aug 29 2012, 9:38 am
From: Andrea Gavana <andrea.gav...@gmail.com>
Date: Wed, 29 Aug 2012 15:38:52 +0200
Local: Wed, Aug 29 2012 9:38 am
Subject: Re: [wxPython-users] Using ; and / as global hotkeys
On 29 August 2012 15:20, Cody wrote:

> On Wed, Aug 29, 2012 at 7:52 AM, Ram Rachum <r...@rachum.com> wrote:
>> Sorry, I meant codes in the context of setting a global hotkey. i.e., the
>> codes that I need to pass to RegisterHotKey.

> RegisterHotKey only works under Windows:

> http://docs.wxwidgets.org/2.8/wx_wxwindow.html#wxwindowregisterhotkey
> http://wiki.wxpython.org/RegisterHotKey
> http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs...

Not quite:

http://docs.wxwidgets.org/2.9.4/classwx_window.html#a53ca57872dac5851...
http://wxpython.org/Phoenix/docs/html/Window.html#Window.RegisterHotKey

Or at least I can't see any Windows-specific remarks on that method.

Anyway, I have no idea if Linux or Mac implementation actually work,
so that may just be incomplete documentation.

For the virtual hotkeys, on US keyboards only, MS reports this:

1) ';' ==> 0xba
2) '/' ==> 0xbf

Personal suggestion: don't use them :-)

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

# ------------------------------------------------------------- #
def ask_mailing_list_support(email):

    if mention_platform_and_version() and include_sample_app():
        send_message(email)
    else:
        install_malware()
        erase_hard_drives()
# ------------------------------------------------------------- #


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cody  
View profile  
 More options Aug 29 2012, 9:47 am
From: Cody <codyprec...@gmail.com>
Date: Wed, 29 Aug 2012 08:47:03 -0500
Local: Wed, Aug 29 2012 9:47 am
Subject: Re: [wxPython-users] Using ; and / as global hotkeys
Hi,

Did you check the remarks section of that documentation in your link ;-)

Cody


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Gavana  
View profile  
 More options Aug 29 2012, 9:52 am
From: Andrea Gavana <andrea.gav...@gmail.com>
Date: Wed, 29 Aug 2012 15:52:36 +0200
Local: Wed, Aug 29 2012 9:52 am
Subject: Re: [wxPython-users] Using ; and / as global hotkeys
On 29 August 2012 15:47, Cody wrote:

"""
Note Use EVT_HOTKEY(hotkeyId, fnc) in the event table to capture the
event. This function is currently only implemented under Windows. It
is used in the Windows CE port for detecting hardware button presses.
"""

From what I understand, it appears you can register a hotkey on any
platform but you can handle the event only on Windows. Very funny (and
useful) indeed :-)

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

# ------------------------------------------------------------- #
def ask_mailing_list_support(email):

    if mention_platform_and_version() and include_sample_app():
        send_message(email)
    else:
        install_malware()
        erase_hard_drives()
# ------------------------------------------------------------- #


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ram Rachum  
View profile  
 More options Aug 29 2012, 12:03 pm
From: Ram Rachum <r...@rachum.com>
Date: Wed, 29 Aug 2012 19:02:49 +0300
Local: Wed, Aug 29 2012 12:02 pm
Subject: Re: [wxPython-users] Using ; and / as global hotkeys

Thanks everybody. Andrea, the codes you supplied work great.

On Wed, Aug 29, 2012 at 4:52 PM, Andrea Gavana <andrea.gav...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »