Tk_GetUserInactiveTime(3tk)
β¨ Tk_GetUserInactiveTime β the manual page, but make it cute β¨
okay so bestie, welcome to the Tk Library Procedures section of the man pages π this one's about Tk_GetUserInactiveTime and Tk_ResetUserInactiveTime, and their whole entire job is discovering the user inactivity time π like, how long has it been since your human last touched a key or wiggled a mouse. iconic behaviour tbh.
πΈ NAME πΈ
Tk_GetUserInactiveTime, Tk_ResetUserInactiveTime β discover user inactivity time β¨
π SYNOPSIS π
#include <tk.h>
long
Tk_GetUserInactiveTime(display)
Tk_ResetUserInactiveTime(display)
π ARGUMENTS π
Display *display(in) β the display whose user inactivity timer is getting queried or reset. that's it, that's the whole arg π«Ά
π¦ DESCRIPTION π¦
Tk_GetUserInactiveTime returns the number of milliseconds that have passed since the last user interaction (usually via keyboard or mouse) with the respective display. so like, the longer the number, the longer your user has been ignoring you π
On systems and displays that do not support querying the user inactivity time, -1 is returned. no cap, that's your "bestie I literally cannot tell you" signal π
Tk_ResetUserInactiveTime resets the user inactivity timer of the given display to zero. back to the starting line, fresh slate, main character energy π
On windowing systems that do not support multiple displays,displaycan be passed asNULL. so if your system is a one-display-only kinda situation,NULLis totally fine to hand over β¨
β KEYWORDS β
idle, inactive
and that's the whole page bestie, you ate that π go forth and query those inactivity timers with confidence, periodt π
signing off with love β this one comes from Tk 8.5, dated back in the day, page Tk_GetUserInactiveTime(3tk) π
π¦ where this page comes from
- debian trixie: tk9.0-doc 9.0.1-3
- ubuntu questing: tk9.0-doc 9.0.2-1
- ubuntu resolute: tk9.0-doc 9.0.3-1
- ubuntu stonking: tk9.0-doc 9.0.4-1
- Copyright (c) 1998-2000 Scriptics Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms