Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

112
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda