+ Reply to Thread
Results 1 to 5 of 5

User idle

  1. #1
    Registered User
    Join Date
    12-21-2007
    Location
    Szeged, HUNGARY
    MS-Off Ver
    2013
    Posts
    43

    User idle

    Hi all,

    I wrote a program to control the exam of my students.
    The student is expected to click on cells, each click is an answer.
    With the event "Selection change" a program starts and
    asks if in the active folder a file with a special name (say
    STOPIT.TXT) was created by the tutor or not.

    If created the exam stops.

    What to do if the student stops his work and will not make any event?
    (Now we ask the student to do something, for example to click anywhere.)


    The OnTime is not OK, because during the exam something may happen what
    I did not see in advance. (no definite stop time) It must be a momentan decision of the teacher what time is the closing time. Then the tutors program creates a file
    what should be noticed by the students program.

    Any proposal for an event?


    Thanks in advance

    Kaus Borealis
    Last edited by KausBorealis; 11-27-2011 at 11:12 AM.

  2. #2
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: User idle

    I didn't quite understand what you want. I think it's the same problem I had.

    You don't want an OnTime sub to run if some event occurs after the time was set, but before the OnTime sub had run. I solved that with this:

    Please Login or Register  to view this content.
    So you run SetOnTimeSub to have it run "CheckExam" one hour from now, but if the cursor is moved in any worksheet in the workbook it turns off the OnTime.

    If that's not what you wanted, then please try again to explain what you want.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  3. #3
    Registered User
    Join Date
    12-21-2007
    Location
    Szeged, HUNGARY
    MS-Off Ver
    2013
    Posts
    43

    Re: User idle

    Thanks for the letter, but my problem is different.
    If I can hope any event from the user (student) I know what to do.
    But in fact a teacher at a different computer makes something
    which should be noticed by the student's computer as an event.

    The action of the teacher is to create a text file with a special name
    in a network folder which folder is a default folder for the student's
    computer.

    But the student may be idle.

    Kaus

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: User idle

    All right;
    The teacher creates a file. You want the student's computer to recognize that a file has been created despite the fact that the student's computer is not doing any thing (No Event is being executed).
    I'm pretty sure that you will have to use OnTime. Events only occur if something happens. If nothing happens there is no Event.

    Something like this is what you want:
    The easiest place to put something that starts checking for a file is in the SelectionChange() event. Possibly in the Calculation() event.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-21-2007
    Location
    Szeged, HUNGARY
    MS-Off Ver
    2013
    Posts
    43

    Re: User idle

    Thanks foxguy

    I'll try it.

    Kaus

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1