UNO Posted May 10, 2007 Share Posted May 10, 2007 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 More sharing options...
erebus Posted May 10, 2007 Share Posted May 10, 2007 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 More sharing options...
UNO Posted May 10, 2007 Author Share Posted May 10, 2007 I tried controlsend also.still no luck. below is the code While 1 sleep(290000) ControlSend ( "Pop Up", "PoP UP", "Button1", "{ENTER}" ) WEnd Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now