Feonik Posted September 10, 2008 Share Posted September 10, 2008 (edited) Sorry for my English. I want (for example): #include <Timers.au3> Sleep(90000) While 1 $iIdleTime = _Timer_GetIdleTime() if $iIdleTime > 5000 then WinActivate("Notepad", "") Sleep(1000) Send("note") EndIf Sleep(1000) WEnd Exit But it not work under screensaver. Howto send simulated keystrokes to the required window with automatically runing screensaver? My OS is Windows XP. Screensaver is starting over 1 min. Please help me. Edited September 10, 2008 by Feonik Link to comment Share on other sites More sharing options...
Andreik Posted September 10, 2008 Share Posted September 10, 2008 Try this: #include <Timers.au3> AutoItSetOption ("WinTitleMatchMode",2) Sleep(90000) While 1 $iIdleTime = _Timer_GetIdleTime() if $iIdleTime > 5000 then ControlSend("Notepad","","[CLASS:Edit;INSTANCE:1]","note") EndIf Sleep(1000) WEnd Exit When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now