Jump to content

Calculator Vorbitor - Visual Basic


gaby

Recommended Posts

Puteti face calculatorul sa spuna un anumit cuvant sau mai multe, punand codul de mai jos creat initial in Visual Basic, in Notepad, si salvand apoi fisierul cu extensia .vbs:

StrText=("Salut PC Troubleshooting")
set ObjVoice = CreateObject("SAPI.SpVoice")
ObjVoice.Speak StrText[/code] Rulati micul programel creat si, calculatorul va spune: "[b]Salut PC Troubleshooting[/b]" [hr] Alta varianta ar fi, prin folosirea codului de mai jos. Acesta va crea tot un mic programel care la rulare va deschide o mica fereastra unde veti putea introduce un cuvant sau mai multe cuvinte pe care calculatorul le va spune.
[code]StrText = InputBox("PC Troubleshooting dot ro", "Exxy")
set ObjVoice = CreateObject("SAPI.SpVoice")
ObjVoice.Speak StrText

5cbhdbob5gk0tc54c98t.jpg

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

merge,pacat de pronuntie... :-s (nu cumva e naratorul ? )

Ba da, naratorul este folosit pentru pronunctie.

asa am facut gaby. Degeaba

Hmm... ciudat, poate pentru ca ai setat, "Opens with Notepad" ?

4334.png

Incearca sa dai click dreapta pe fisier, Open With si alege Microsoft ® Windows Based Host Script:

8zszhn3whiuhoejn4ojs.png

Merge, da parca ar avea prune in gura :))

Se descurca mai greu cu limba romana, dar la engleza se descurca ceva mai bine :D (engleza e programat sa vorbeasca).

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.