Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

I tried controlsend also.still no luck.

below is the code

While 1

sleep(290000)

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

WEnd

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