Jump to content
Sign in to follow this  
Feonik

Howto run Send under screensaver

Recommended Posts

Feonik

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

Share this post


Link to post
Share on other sites
Andreik

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×