Jump to content

Recommended Posts

Posted

Hi there,

AutoIT-3.3.6.1 Windows-7 professional 32 bit

I am running around in circles solving the issue below.

When I run this script, the "Send" command does not work, what do I overlook here?

If I do the commands manually, it works fine.

Your response is much appreciated.

---

;AutoIt script: win-71

sleep(500)

; Turn off System Restore:

Run("Rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4")

sleep(500)

WinWaitActive("System Properties")

;AutoItSetOption("SendKeyDelay", 1000)

Send("!o")

WinWaitActive("System Protection for")

Send("{DOWN 2}")

sleep(500)

Send("!a")

WinWaitActive("System Protection")

Send("{LEFT}{ENTER}")

WinWaitActive("System Protection for")

Send("o")

exit

---

Posted

I experienced something similar some time ago and it was solved by using ControlSend instead of Send. Have you tried it?

Thanks for the response.

It was easy to resolve, RUN AUTOIT AS ADMINISTRATOR :x

At least your response made me wiser for the alternatives, very interesting.

Thanks,

gmankds

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