×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    201

    Post how to python register system hotkey

    a hotkey
    ?

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: how to python register system hotkey

    You're going to have to explain what you want to do a lot better than that.

    You can use the keycapture module to detect when certain keys are pressed and perform actions accordingly. Here is an example:http://discussion.forum.nokia.com/fo...14&postcount=2 But this doesn't mean it will register a system hotkey. That's not possible in Python.

  3. #3
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India
    Posts
    138

    Re: how to python register system hotkey

    Hi Jay_st

    see below code :

    CANVAS.bind(key_codes.EStdKeyEnd, lambda: None)
    CANVAS.bind(key_codes.EKeyMenu, lambda: None)

    through this code you can achieve your own functionality.


    Hope this may be help.
    Pavan Pareta
    Sr. Software Engineer
    http://windows-mobile-dev.blogspot.com

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: how to python register system hotkey

    Quote Originally Posted by pavan.pareta View Post
    CANVAS.bind(key_codes.EStdKeyEnd, lambda: None)
    CANVAS.bind(key_codes.EKeyMenu, lambda: None)

    through this code you can achieve your own functionality.
    This won't work if he doesn't use a Canvas, will it?
    Using keycapture might be a better solution because it doesn't depend on the type of application (Canvas, Text etc.)

  5. #5
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    201

    Re: how to python register system hotkey

    thanks!.....

Similar Threads

  1. Python for S60 1.9.0 released
    By tvijayan in forum Symbian
    Replies: 48
    Last Post: 2009-01-27, 15:39
  2. Install Python 3.0a5 on Windows Vista System
    By Hugh Pittman in forum Symbian
    Replies: 5
    Last Post: 2008-06-09, 11:17
  3. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Symbian
    Replies: 35
    Last Post: 2008-01-17, 09:12
  4. Replies: 3
    Last Post: 2007-03-13, 06:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×