Création d'un IA ( suite de Problème de récupération de texte dans une variable)
Bonsoir ou bonjour.
Suite a la discussion " Problème de récupération de texte dans une variable ", j'ai voulu continuer mon IA (une sorte de siri, sur iOS) mais, le problème, c'est que le messsage met des plomes a arrivé! Et encore, des fois il ne vien pas.
Voici le code source:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| REM/ TalkToMe est un logiciel POUR LE MOMENT open source. Une fois que le cryptage sera disponible, je crypterai ce logiciel.
:_CREER:
fix/ TXT_USER = 0
ini/ fenetre(
ini;nom = "TTM"
ini;texte = "TalkToMe"
ini;type = "1;M1A1R1F1HS1T1"
ini;couleur = "000,000,000"
ini;px = "MX"
ini;py = "MY"
ini;tx = "400"
ini;ty = "300"
creer/
ini/ fenetre)
ini/ textebox(
ini;nom = "TEXT"
ini;fenetre = "TTM"
ini;type = "1"
ini;couleurf = "255,255,255"
ini;couleurp = "000,000,000"
ini;texte = "Bonjour"
ini;px = "0"
ini;py = "0"
ini;tx = "250"
ini;ty = "17"
creer/
ev/ OS\PROG\TTM_EV.CPC
ini/ textebox)
ini/ textebox(
ini;nom = "TEXT"
ini;texte = "#%TXT_USER"
ini/ textebox) |
L'EV:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
PROC/ TEXT(ENTRER)
rem/ ORTHO1
SI/ %TXT_USER% = Bonjour (:
msgbox/ Bonjour %UTILISATEUR%! :)
SI/ %TXT_USER% = Ca va? (:
msgbox/ Très bien. :)
SI/ %TXT_USER% = Que fais tu? (:
msgbox/ Je réponds à tes question! :)
SI/ %TXT_USER% = Qui es tu? (:
msgbox/ Je suis TalkToMe, l'assistant de OSSeek. :)
SI/ %TXT_USER% = Tu sers à quoi? (:
msgbox/ Je sers à discuter avec toi, %UTILISATEUR%. :)
SI/ %TXT_USER% = Quand es tu né? (:
msgbox/ Je suis né le Dimanche 2 novenbre 2014. :)
SI/ %TXT_USER% = Qui t'a crée? (:
msgbox/ C'est Léo Endor qui m'a crée. :)
SI/ %TXT_USER% = Quel heure est il? (:
msgbox/ Il est LBL_HEURE* :)
rem/ ORTHO2
SI/ %TXT_USER% = Salut (:
msgbox/ Bonjour %UTILISATEUR%! :)
SI/ %TXT_USER% = Comment va tu? (:
msgbox/ Très bien. :)
SI/ %TXT_USER% = Tu fais quoi? (:
msgbox/ Je réponds à tes question! :)
SI/ %TXT_USER% = Tu es qui? (:
msgbox/ Je suis TalkToMe, l'assistant de OSSeek. :)
SI/ %TXT_USER% = A quoi sert tu (:
msgbox/ Je sers à discuter avec toi, %UTILISATEUR%. :)
SI/ %TXT_USER% = Tu es né quand? (:
msgbox/ Je suis né le Dimanche 2 novenbre 2014. :)
SI/ %TXT_USER% = C'est qui qui t'a crée? (:
msgbox/ C'est Léo Endor qui m'a crée. :)
SI/ %TXT_USER% = Il est quel heure? (:
msgbox/ Il est LBL_HEURE* :)
FIN/ SI
FIN/ PROC |
S'il vous plaît, aidé moi!
Cordialement,
Léo Endor, créateur de OSSeek.
Cor