Sign in to follow this  
Followers 0
chiners_68

how do you send a variable within a function..?

4 posts in this topic

Smoke N left me this line but im not sure what he means or how to do it.

Well, I would imagine if you are "sending" something that is stored in a variable, that you would actually have to send that variable within the function itself... wouldn't you?

any hint & tips are greatly apreciated.

Share this post


Link to post
Share on other sites



my variable is

$sEncrypted

im trying to use it in the command

run('net user "Administrator" "$sEncrypted"')

but when I run that, mylocal admin password comes out as $sEncrypted but it should be my variable.

Share this post


Link to post
Share on other sites

Run('net user "Administrator ' & $sEncrypted & '"')
Or something to that effect.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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