Jump to content
Sign in to follow this  
lilshortwun

How to send random words?

Recommended Posts

lilshortwun

Hi, is there any way to make autoit send out random words? Thank you.

Share this post


Link to post
Share on other sites
BrettF

Hi, is there any way to make autoit send out random words? Thank you.

Yes. Put those words, into a array (or a txt document, containing the random words, separated by a "|" or something similar. Now read it, then string split, the read file, by the separator char. Now just call it like this:

$array[Random (1, Ubound($array)-1)]

Share this post


Link to post
Share on other sites
lilshortwun

I'm thinking more like this.

Send("testing testing testing" X) <---- where the X is a 6 digit number thats random. Is that possible? Please help me

Share this post


Link to post
Share on other sites
herewasplato

$x = Random(0, 9, 1)
Send("testing testing testing" & $x)


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
lilshortwun

wow thanks so much!

Share this post


Link to post
Share on other sites
BrettF

Hi, is there any way to make autoit send out random words? Thank you.

I'm thinking more like this.

Send("testing testing testing" X) <---- where the X is a 6 digit number thats random. Is that possible? Please help me

First a random word then a random number??? :)

Share this post


Link to post
Share on other sites
herewasplato

First a random word then a random number??? :)

They were just a couple of random posts :-)

Edit: Grammmmarrrr

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
herewasplato

wow thanks so much!

You are welcome - but use it only for good :-)

[size="1"][font="Arial"].[u].[/u][/font][/size]

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  

×