Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. "Run Program After Device Inactivity" (evc++)

"Run Program After Device Inactivity" (evc++)

Scheduled Pinned Locked Moved Mobile
c++helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    ZapMe1
    wrote on last edited by
    #1

    Hello, I'm looking for a little more help with another bit of code, and thought a seperate thread for this one was better! I would like to run a program after a (user setable) "period of device inactivity"! I'm also looking to do this with evc++ code. Can anyone help with this please? Thank You...:confused: ZapMe1

    J 1 Reply Last reply
    0
    • Z ZapMe1

      Hello, I'm looking for a little more help with another bit of code, and thought a seperate thread for this one was better! I would like to run a program after a (user setable) "period of device inactivity"! I'm also looking to do this with evc++ code. Can anyone help with this please? Thank You...:confused: ZapMe1

      J Offline
      J Offline
      Jonas Larsson
      wrote on last edited by
      #2

      Look into CeSetUserNotification(Ex) or the older CeRunAppAtEvent/Time and GetIdleTime Im not sure you can get notifications tied to idle time, but you could write a gui-less application that gets started by the times events to check if the device has been idle for long enough, and then starts the program that should run. If your app is always running (or if you implement a service), you should get by with just GetIdleTime. HTH --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot

      Z 1 Reply Last reply
      0
      • J Jonas Larsson

        Look into CeSetUserNotification(Ex) or the older CeRunAppAtEvent/Time and GetIdleTime Im not sure you can get notifications tied to idle time, but you could write a gui-less application that gets started by the times events to check if the device has been idle for long enough, and then starts the program that should run. If your app is always running (or if you implement a service), you should get by with just GetIdleTime. HTH --- "Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot

        Z Offline
        Z Offline
        ZapMe1
        wrote on last edited by
        #3

        Again, thank you for the reply, Jonas. I will run a few tests with this and see what I can come up with! ZapMe1

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups