Jump to content

Screen Locks and my script pauses


Recommended Posts

I have a popup that keeps coming every 5 mins and I have to keep clicking the "OK" button.

I have written the script for sending enter whne that screen appears.

However I have noticed that my script doesnt work if the PC locks(predefaulted setting and i cant do much abt it)

Does autoit work when the screen is lock.

Below is my code.

While 1

sleep(290000); 290 seconds so CPU utilization is low

If winexists("Pop Up", "PoP UP") Then

WinActivate("Pop Up", "PoP UP")

WinWaitActive("Pop Up", "PoP UP")

Send("{ENTER}")

EndIf

Wend

can anyone guide me on this

Thanks in advance

Link to comment
Share on other sites

What do you mean that it does not work? Did you debug your code to see in which stage it stops?

If nothing helps, try using the ControlSend to see if it makes any difference.

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...