Jump to content

Recommended Posts

Posted

Hi guys!

I'm trying to make an auto replier kind of thingy, and I've got stuck in the part where I want my 'bot' or whatever, to send RANDOM messages back to the client.

I'm storing 20 messages (example) in 20 variables.

I wan't a Send function to send a variable from 1-20 randomly.

I know that there is a random function in autoit, but I can not randomise a variable's name.

If I do it like "Send ($ Random (1 , 20 , 1) ) It says badly defined variable.

What should I do guys?

Plz help me out.

Posted

Hi guys!

I'm trying to make an auto replier kind of thingy, and I've got stuck in the part where I want my 'bot' or whatever, to send RANDOM messages back to the client.

I'm storing 20 messages (example) in 20 variables.

I wan't a Send function to send a variable from 1-20 randomly.

I know that there is a random function in autoit, but I can not randomise a variable's name.

If I do it like "Send ($ Random (1 , 20 , 1) ) It says badly defined variable.

What should I do guys?

Plz help me out.

Tried this one and this seems to work very well, thank you a lot.

Also thanks to zedna for his anwser

Posted

Hey I'm man really :-)

I know my nick sound strange in English but in Czech it sound good trust me :-)

I don't know... you could be lying.

I'm reading you as "thirsty woman".

♡♡♡

.

eMyvnE

Posted

Hey I'm man really :-)

I know my nick sound strange in English but in Czech it sound good trust me :-)

I don't know... the avatar makes me think of pollen with curlers in its hair...

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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