Jump to content

Recommended Posts

Posted (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 by Feonik
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...