简体   繁体   中英

Third party Application's Idle Session expiry

We have a third party application running. It shows login dialog when idle for 20 minutes. We need to prevent the application to display login screen.

We do not have any idea how idle state is handled internally in that application.

We have done the follwoing with no luck.

  1. Created an small application in c# which focus it after every 5 minutes (using SetForegroundWindow() ) and send a BM_CLICK message to one of its child window. Does not work.
  2. focus it after every 5 minutes (using SetForegroundWindow() ) and move the cursor few pixels then restore cursor at its previous position. This does not work too!

Is there any other way to achieve the goal?

If third-party application detects idle state using GetLastInputInfo function, you can try SendInput to reset an idle state. Find some input event that doesn't affect normal program execution, like mouse movement to 1 or even 0 pixels.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM