banner banner banner
Medium and high level hacks – 2. Secrets, jokes, programming, computer knowledge. Collection of codes of my programs
Medium and high level hacks – 2. Secrets, jokes, programming, computer knowledge. Collection of codes of my programs
Оценить:
 Рейтинг: 0

Medium and high level hacks – 2. Secrets, jokes, programming, computer knowledge. Collection of codes of my programs


ExitLoop

exit from the first cycle. The next line!

Case $msg = $Button_1

here is the beginning of the button and the variable, so that she would understand the commands by pressing our button called Start Talk. Next, we write the commands for our button, namely, what would our robot say after pressing it, our text entered here are 4 commands!

$oSpVoice = ObjCreateInterface ($CLSID_SpVoice, $IID_ISpVoice, $sSpVoice)

$oSpVoice.SetRate (-3)

$text = GUICtrlRead ($Input_1)

$oSpVoice. speak ($text, $SPF_DEFAULT, 0)

I tell the robot that he would utter the text we entered for him. The next line!

EndSelect

end of selective mode. Next line!

WEnd

end of cycle, program work. The next line!

EndFunc;==> Deeman

the end of a function called Deeman and the end of the whole program!

We have created a program that, after entering your text, after clicking on the button, the text will speak. I almost forgot to say, here in the program there is one more nuance, tuning in general, a line!

$oSpVoice.SetRate (-3)

number 3 is the speed of the robot’s conversation, you can change the numbers and the robot will speak faster and slower. I could add one digit input field and an additional robot voice control button to control the speed, but I think that it will be a little superfluous, and you yourself can try to create a button and assign a new variable to it and connect this code.

******************************************************************************

Let’s remember the first book, there I wrote something like a flood bot, but if you think so, it is too simplified and I would even say that it was just the foundation, to create a flood bot, I will now write a more advanced flood bot, which I could say already ready to compile, I would even say need! Here is the code for the new flood bot!

FLOOD BOT FROM DEEMAN!

#include <GUIConstantsEx.au3>


Вы ознакомились с фрагментом книги.
Для бесплатного чтения открыта только часть текста.
Приобретайте полный текст книги у нашего партнера:
Полная версия книги
(всего 10 форматов)