×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    5

    Question How to make funkction working only few minutes?

    Hello!

    I have a function e.g. for receving sms. This function waiting for sms until it came. How to modificate that function for working only for e.g. one hour and if none sms came after that time stop function.

    example from forum:

    def message():
    print "waiting for sms"
    def message_received(msg_id):
    box=inbox.Inbox()
    app_lock.signal()
    box = inbox.Inbox()
    box.bind(message_received)
    app_lock = e32.Ao_lock()
    app_lock.wait()
    print "sms received"


    thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: How to make funkction working only few minutes?

    hello

    really sorry but i was not able to get your question, then also i will try.

    what you mean is you want to wait for a msg only for an hour and if the msg don't come in an hour you need to do someother stuff.

    simply use the if-else statements that will surely help you.

Similar Threads

  1. Help me...not working abld build winscw
    By JAE YOUNG in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2009-04-24, 10:38
  2. Tried and tried and still cant do it. Please help!
    By farmdve in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2009-04-16, 10:29
  3. How to build GCCE target
    By dsiorpaes in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2008-09-18, 06:54
  4. Problem in build with S60 1FP
    By Manuelito_ in forum Symbian Tools & SDKs
    Replies: 14
    Last Post: 2007-09-18, 12:08

Posting Permissions

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