Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
Can we get times of when mouse is not move --app script

I don't know this is possible in app script. But I want to ask if it is possible the how. So my question is If mouse or keyboard not moveing then can we capture the start time and end time as idel time. If yes the plese guide or help me on this

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There is no event for "not" doing something so you need to keep track of a timer and reset it every time the mouse moves or the keyboard is pressed. It will look something like this:

let dtStart = new Date();

window.addEventListener('mousemove', function(event){
  let diff = new Date() - dtStart;
  console.log(diff)
  dtStart = new Date()
}

window.addEventListener('keydown', ... <-- same thing as onmousemove
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!