Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor jay_st's Avatar
    Join Date
    Apr 2009
    Posts
    201
    a hotkey
    ?

  2. #2
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    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
    Registered User pavan.pareta's Avatar
    Join Date
    Jan 2009
    Location
    India
    Posts
    128
    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
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    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 jay_st's Avatar
    Join Date
    Apr 2009
    Posts
    201
    thanks!.....

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved