更新时间:2023-10-31 15:49:46
我不认为Google聊天使用该窗口来检查焦点.它使用与您聊天的用户的文本框.文本框获得焦点后,说..."立即停止循环.
I don't think google chat uses the window to check focus. It uses the textbox of the user chatting to you. As soon as the textbox receives focus " Says..." stops looping.
您可能要检查鼠标的移动,以查看窗口是否具有焦点.除此之外,我仍在尝试找出在使页面保持活动状态时如何检查窗口的焦点.
You might want to check for mouse movements to see if the window has focus. Other than that, I am still trying to figure out how to check the window for focus when trying to keep a page live.