Jump to content
Sign in to follow this  
UNO

Screen Locks and my script pauses

Recommended Posts

UNO

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

Share this post


Link to post
Share on other sites
erebus

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.

Share this post


Link to post
Share on other sites
UNO

I tried controlsend also.still no luck.

below is the code

While 1

sleep(290000)

ControlSend ( "Pop Up", "PoP UP", "Button1", "{ENTER}" )

WEnd

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.