Jump to content

Recommended Posts

Posted

Hi i start to learn autoit my book is base on autoit v3.2.4.9 but my autoit is 3.3.14.5 why my below code not run for me

If @Username <> "Administrator" Then RunAsSet("Administrator",@ComputerName,"password") install() RunAsSet()
Else install() EndIf
Func install() RunWait("Windows Update 1.exe /passive /norestart") RunWait("Windows Update 2.exe /passive /norestart")
EndFunc

Posted

RunAsSet does not exist anymore, use RunAs instead.

See

 

Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)

  • Developers
Posted
1 hour ago, alihyazdi said:

i change it but get error for RunAs()

Don't you think it would be helpful to also tell us what that error is and what you have coded?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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