#101 keycapturer module doesn't work in 3rd

v1.3.12
closed-fixed
nobody
None
8
2006-11-23
2006-10-25
cyke64
No

hello ,

There's an error in line containing capturer_keys.start() :

capturer.start()
File: "c:\resource\keycapture.py" line 88 in start
key_id=self._capturer.key(key_code)
SymbianError:[Errno -46]
KErrPermissionDenied

# code snippet
import keycapture
from appuifw import *
from e32 import *

def quit(self):
app.exit_key_handler = None
script_lock.signal()
capturer_keys.stop()

def cb_capture(key):
if key==keycapture.EKeyYes:
note(u'Capture yes key !')
else:
note(u'last key
was:'+unicode(capturer_keys.last_key()))

script_lock = Ao_lock()
app.exit_key_handler = quit
capturer_keys=keycapture.KeyCapturer(cb_capture)
capturer_keys=(keycapture.EKeyYes,keycapture.EKeySelect,keycapture.EKeyEdit)
capturer_keys.start()
script_lock.wait()

# end of code snippet

I'm using pys60 1.3.11 or 1.3.12
Nokia N93 10.0.0.25 3rd Edition
compiled myself with dev cert free and all capacities
which are possible for this certificate !

Discussion

  • cyke64

    cyke64 - 2006-10-25
    • priority: 5 --> 8
     
  • Jiri Popek

    Jiri Popek - 2006-10-27

    Logged In: YES
    user_id=1402590

    keycapture module needs SWEvent capability which is not
    available at the time.

     
  • cyke64

    cyke64 - 2006-11-01

    Logged In: YES
    user_id=1225602

    Jardous ,
    I already recompile PyS60 with SwEvent capability and my own
    Dev Cert free (SwEvent is included in my cert) but it
    doesn't work (same error !)

     
  • cyke64

    cyke64 - 2006-11-23
    • status: open --> open-fixed
     
  • cyke64

    cyke64 - 2006-11-23

    Logged In: YES
    user_id=1225602
    Originator: YES

    Hello ,

    I tried now with new unsigned pys60 version 1.3.14 (dev cert free). I signed this file with the ALL new dev cert free (my own cert) and all works now :) :) :)
    You can close this thread now !

     
  • cyke64

    cyke64 - 2006-11-23
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.