Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User stehart's Avatar
    Join Date
    Nov 2006
    Posts
    3
    Hello, I have a little, no a big problem with my N80:
    If I put it in my pocket the keylock gets often unlocked by the 2 softkeys.
    There are several key lock / auto lock programs on the market, but they only lock the handy, they don't prevent the unwanted unlock.
    My idea is to lock handy when closing slider and unlock it opening the slider. No unlock with softkeys should be possible.

    I read a little bit in the Python docu but I'm not sure if I can solve it with python. I think there are 3 possibilities to solve this problem.

    1. The best solution in my opinion is to have an application running in background. It detects that the handy is locked and catches
    all "keystrokes" until handy is unlocked. This would require that a python application in background can catch keyevents, is this possible? Also it must detect if phone is locked or not. Alternativly it must detect when slider is opened and closed.

    2. Another option is that a background application gets an event that keyboard is locked. Now it becomes to the application in foreground and catches all keystrokes until handy is unklocked.

    3. The last possibilty might be an application that is started via quick lauch and that catches all keystrokes. This application will close when handy is unlocked.

    What is your opinion, is this solvable with python or must I use java or c++ ?

  2. #2
    Registered User RICH?'s Avatar
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    168
    Hello!

    You could just use the "lock phone" option.Its in the menu when you press the power button and it can be set to "automatic" as well. It won't unlock until you enter the security code. By default this code is "12345".

    But I also have a question: is it possible to lock the keypad using python (programmatically).

  3. #3
    Registered User stehart's Avatar
    Join Date
    Nov 2006
    Posts
    3
    Quote Originally Posted by RICH?
    Hello!

    You could just use the "lock phone" option.Its in the menu when you press the power button and it can be set to "automatic" as well. It won't unlock until you enter the security code. By default this code is "12345".

    But I also have a question: is it possible to lock the keypad using python (programmatically).
    Thats not realy an option for me. I have the phone in the hand, close the slider and it should be keylocked. I open the slider and it is unlocked. That is how it works and that is good.
    The only problem is that Nokia allows to unlock with the two softkeys on the front, not covered by slider mechanism. You put it in the pocket, and some it unlocks an starts some calls. The only thing I want is that the only possibility to unlock it, is to open the slider. Normally that is just a little switch in the firmware, but Nokia has to place it there.

  4. #4
    Registered User stehart's Avatar
    Join Date
    Nov 2006
    Posts
    3
    I tested some python examples.
    Every example could be ended by pressing the red hang up (No) Key.
    Is it possible to disable that?

  5. #5
    Registered User RICH?'s Avatar
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    168
    You could probably use "appuifw.app.focus" to check if the app has focus and if not, use the appswich module to get focus. I havent tried it my self yet so im not sure it works but its an idea.

  6. #6
    Registered User cyke64's Avatar
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352
    hello ,

    I want make one remark. appswitch is not yet available for N80 (3rd edition) !
    But it will be available for all in the end of this week
    I'll announce it here
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  7. #7
    Registered User RICH?'s Avatar
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    168
    Oh yeah, I forgot that

    I also solved the keylocking with python. I just use the keypress module to simultate the keys (Power key -> Down key -> Select key).

  8. #8
    Registered User dhlateef's Avatar
    Join Date
    Oct 2007
    Posts
    1
    Hi, i have a problem with my n72 keylock. When i manually lock the keypad by using ok key and * key. it shows keypad locked but the prolem is that when i press any key the keypad gets unlocked.Please help.

  9. #9
    Regular Contributor nlsp's Avatar
    Join Date
    Oct 2007
    Posts
    67
    Oh yeah, I forgot that

    I also solved the keylocking with python. I just use the keypress module to simultate the keys (Power key -> Down key -> Select key).
    Would you share the keycode for the powerkey with us? I can't find it...

    thanks ;-)

Similar Threads

  1. Please help installing Python libraries on S60
    By ericroijen in forum Python
    Replies: 11
    Last Post: 2009-07-18, 10:43
  2. Python for Series 60 released on Forum Nokia!
    By eriksmartt in forum Python
    Replies: 5
    Last Post: 2009-07-14, 17:00
  3. Use filebrowser.py to execute your python scripts.
    By zweiberg in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-11-01, 13:24
  4. Python C++ Extension with Callback crashing
    By diggerdeep in forum Python
    Replies: 2
    Last Post: 2005-11-10, 16:33
  5. How to capture a snapshot with Python on Series 60 phones?
    By harrygoesnokia in forum Symbian C++
    Replies: 0
    Last Post: 2004-07-18, 00:56

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