Sign in to follow this  
Followers 0
gmankds

Send does not work in Win7

3 posts in this topic

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

---

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

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  
Followers 0