Trigger at re-login

  1. 5 months ago

    TC C

    Jan 25 Washington, DC

    I have a windowless NSStatusItem app that launches at login and keeps track of time a user is logged in.

    So lets say, the user walks away from the computer and it auto-logs out...then they come back later and log back in. How can I trigger something in my app when they log back in, assuming my app was running the entire time?

    Thanks!

  2. Emile S

    Jan 25 Europe (France, Strasbourg)

    You assume the user log off / log on and your application can run while no user is running ?

  3. TC C

    Jan 25 Washington, DC

    I'm looking for a way to trigger a method in my app when the user unlocks their computer after it automatically locked from inactivity (after sleep or screensaver).

  4. Emile S

    Jan 25 Europe (France, Strasbourg)

    App.Activate / App.Deactivate ?

    Look at: http://docs.xojo.com/Application

  5. Tim P

    Jan 25 Pre-Release Testers Rochester, NY
    Edited 5 months ago

    @TC C I'm looking for a way to trigger a method in my app when the user unlocks their computer after it automatically locked from inactivity (after sleep or screensaver).

    Sleep I can tell you is in in MBS here
    I don't know about screensaver, user-switching, or returning to the Login Window without logging out.

  6. TC C

    Jan 25 Washington, DC

    @Emile S App.Activate / App.Deactivate ?

    Look at: http://docs.xojo.com/Application

    App.Activate doesn't trigger, since there is no window.

or Sign Up to reply!