Jump to content

Howto run Send under screensaver


Feonik
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...