Hey!
I'm making a Spambot atm (for fun only).
You can customize up to 10 messages which will be displayed in the given order.
Now i thought: Why don't you make a feature that allows the Bot to spam the messages randomized, meaning they are not displayed in the normal order, but in a random one.
Well, the problem is: I don't find a proper function/ I don't know how to randomize it!
(I'm using AutoIt3.)
I created some input boxes in which the user can put some text, and declared them:
Code:
$msg1_input = GuiCtrlCreateInput("1st Message Text", 85, 86, 260, 20)
$msg2_input = GuiCtrlCreateInput("2nd Message Text", 85, 110, 260, 20)
...
To handle with them, i did the following thing:
Code:
$msg1 = GUICtrlRead($msg1_input)
$msg2 = GUICtrlRead($msg2_input)
...
Now, the Spambot works really fine, BUT JUST IN THE NORMAL MODE:
Code:
Func Spambot ()
Select
Case $mode = 1
While $stop > 2
// Not Important
WEnd
Case $mode = 2
While $stop > 2
Send(Random($msg1, $msg2, $msg3, $msg4, $msg5, $msg6, $msg7, $msg8, $msg9, $msg10))
Send ("{ENTER}")
Sleep ($interval)
WEnd
EndSelect
EndFunc
The red code is the problem code (the Random part)
(PS: $mode is only the mode which i declared earlier (Normal or Random))
I know: the 'Random' function has to be like this here:
Code:
Random(-10, 10, 1) ; generate an integer between -10 and 10
but I don't know how to do that with my variables...
Can any1 help me please?
I will highly appreciate answers that help me.
Regards, t0pcraft-