Jump to content
Sign in to follow this  
Jussip

Send random name

Recommended Posts

Jussip

Hey, i need small script

So, i make a list of names, like: Bob, peter, nina , alice ,

and, when i start the script, it send random name of them, SENDS ( send(",,") ) No msgbox.

So, i open the script, it sends

Hey (randomname) ex. Hey, nina

I just cant figure how to make it :)

Share this post


Link to post
Share on other sites
Andreik

Hey, i need small script

So, i make a list of names, like: Bob, peter, nina , alice ,

and, when i start the script, it send random name of them, SENDS ( send(",,") ) No msgbox.

So, i open the script, it sends

Hey (randomname) ex. Hey, nina

I just cant figure how to make it :)

Dim $NAME[4] = ["Bob","Peter","Nina","Alice"]
Send("Hey, " & $NAME[Random(0,3,1)])

When the words fail... music speaks

Share this post


Link to post
Share on other sites
Jussip

"Missing right bracket ')' in expression.: "

what does that mean?

Share this post


Link to post
Share on other sites
Andreik

"Missing right bracket ')' in expression.: "

what does that mean?

You forget to put right bracket somewhere in your expression.

When the words fail... music speaks

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.