You Are Here:

Community: Developer Discussion Boards

#1 Old Post how to python register system hotkey - 2009-04-21, 13:18

Join Date: Apr 2009
Posts: 76
jay_st
Offline
Regular Contributor
a hotkey
?
Reply With Quote

#2 Old Re: how to python register system hotkey - 2009-04-21, 13:27

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
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.
Reply With Quote

#3 Old Re: how to python register system hotkey - 2009-04-21, 21:52

Join Date: Jan 2009
Posts: 64
Location: India
Send a message via AIM to pavan.pareta Send a message via MSN to pavan.pareta Send a message via Yahoo to pavan.pareta Send a message via Skype™ to pavan.pareta
pavan.pareta's Avatar
pavan.pareta
Offline
Regular Contributor
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

http://www.croozeus.com/started.htm
Reply With Quote

#4 Old Re: how to python register system hotkey - 2009-04-21, 22:18

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
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.)
Reply With Quote

#5 Old Re: how to python register system hotkey - 2009-04-22, 12:11

Join Date: Apr 2009
Posts: 76
jay_st
Offline
Regular Contributor
thanks!.....
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Python for S60 1.9.0 released tvijayan Python 48 2009-01-27 16:39
Install Python 3.0a5 on Windows Vista System Hugh Pittman Python 5 2008-06-09 12:17
[announce] PyUIQ. Python for UIQ 2.1 and 3.x OscarBernabeu Python 35 2008-01-17 10:12
(Re)associating Python scripts with Python in messaging? RaimondasL Python 3 2007-03-13 07:50
System wide hotkey with modifier problem kcome Symbian 0 2003-11-14 03:01

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ