0

how to get time of the browser tab when it gets closed using C#? In other words is there any query to get start time and end time of a tab on a browser?

Wasif
  • 11
  • 1

1 Answers1

0

You need to look at one of the following:

  • Windows API, specifically GetWindow, and the chrome window hierarchy (eg tab windows will be nested inside the main chrome window)
  • chrome.windows api

Once you've decided on one of the above, you will need to poll the chrome browser every second to decide if tabs have been opened/closed.

  • can you tell how to connect this chrome window API with my c# application – Wasif Jul 31 '18 at 09:03
  • Take a look at the following answer. If you want more help, post the code you've tried and state the problems you are experiencing! ... https://stackoverflow.com/questions/42120468/control-chrome-programmatically – 3-14159265358979323846264 Jul 31 '18 at 14:27