15,916,835 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Abdullahomaid (Top 19 by date)
Abdullahomaid
28-Feb-11 10:54am
View
thank you useless man ,less take care about your writing. what is Is is??????????????????
look to ur following Is is .
Is is so difficult to take a look at MessageBox help?!
Abdullahomaid
13-Feb-11 1:56am
View
Deleted
thank you google.
Abdullahomaid
13-Feb-11 1:55am
View
Deleted
Thank you i get the solution
private AxAgentObjects.AxAgent activeXagent = new AxAgentObjects.AxAgent();
public Form1()
{
InitializeComponent();
this.Controls.Add(activeXagent);
}
that is the solution .
Abdullahomaid
13-Feb-11 0:20am
View
ok i am waiting to your help or idea.
thank you very much.
Abdullahomaid
12-Feb-11 6:06am
View
thank you SAKryukov,
this is the complete code:
problem:when i say something from the following grammar like(open Notepad,calculator...myDocuments)it is working .but when i say something out of those words that time also it give me out put one of the following grammar word.
using SpeechLib;
using IWshRuntimeLibrary;
namespace finalProject.Utils.Windows
{
public partial class Form1 : Form
{
SpeechRecognizer rec = new SpeechRecognizer();
public void Send(string keys, bool wait)
{
WshShell shell = new WshShellClass();
object wObj = wait;
shell.SendKeys(keys, ref wObj);
}
public void Send(string keys)
{
Send(keys, false);
}
public void SendWait(string keys)
{
Send(keys, true);
}
public Form1()
{
InitializeComponent();
rec.SpeechRecognized += rec_SpeechRecognized;
}
void rec_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
textBox1.Text = e.Result.Text;
}
private void Form1_Load(object sender, EventArgs e)
{
var c = new Choices();
c.Add("Open Notepad");
c.Add("Calculator");
c.Add("Start Menu");
c.Add("excel");
c.Add("Microsoft Word");
c.Add("msWord");
c.Add(" System ShutDown");
c.Add("ControlPanel");
c.Add("Paint Brush");
c.Add("command Prompt");
c.Add("my Documents");
var gb = new GrammarBuilder(c);
var g = new Grammar(gb);
rec.LoadGrammar(g);
rec.Enabled = true;
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
string text = textBox1.Text.Trim();
switch (text)
{
case"Calculator":
System.Diagnostics.Process.Start("calc");
break;
case"Start Menu":
Send("^{ESC}");
break;
case"excel":
System.Diagnostics.Process.Start("excel");
break;
case "Open Notepad":
System.Diagnostics.Process.Start("notepad");
break;
case"Microsoft Word":
System.Diagnostics.Process.Start("winword");
break;
case"System ShutDown":
Send("%{F4}");
break;
case"ControlPanel":
System.Diagnostics.Process.Start("Control");
break;
case"Paint Brush":
System.Diagnostics.Process.Start("PBRUSH");
break;
case"command Prompt":
System.Diagnostics.Process.Start("cmd");
break;
case"my Documents":
System.Diagnostics.Process.Start("explorer");
break;
default:
textBox1.Text = "*";
return;
}
}
}
}
Abdullahomaid
10-Feb-11 23:19pm
View
hi SAKryukov i implement your respectable idea but no effect came,now when i say some phrase from my library it is "recognize correct". but problem is that when i say something else or i say some phrase which
is not include in custom library that time also recognize one of custom library phrase. for "example i said wellcome myabe it recognize start" wellcome is not include in my library .how prevent that when i say phrase out of custom library then no phrase recognize from library . because wellcome is not in library .
wish you get my point.thank you
Abdullahomaid
30-Jan-11 7:34am
View
ok and thank you.
Abdullahomaid
30-Jan-11 7:16am
View
i am searching since 2 hours in google, but i did not find any acceptable solution.any way thank you i also check that site which you have share. "thank u".
Abdullahomaid
21-Jan-11 7:34am
View
thank you Dearv elmahesh ,after some thinking i select "speech recognition" .thank you from your cooperation.wish you have good time.
Abdullahomaid
21-Jan-11 3:43am
View
hi dear Yusuf:
i like your idea that is really great most of the student face with selection of final year project.
but now i select "speech recognition " .if you have any source or idea please share with me
abstraction like that:
how open file menu by my speech and how shut down pc through speech same thing like that.
wish you all the best.
Abdullahomaid
20-Jan-11 11:31am
View
Thanks John Simmons and SAKryukov from your idea.
Abdullahomaid
13-Jan-11 6:53am
View
google voice is working only in uk not working in india.this is a problem
any way thank you cachode.
Abdullahomaid
12-Jan-11 23:12pm
View
good idea,then i need your more help,can you describe more or share some resource.thank you very match.
Abdullahomaid
12-Jan-11 23:09pm
View
there for i wrote i am so sorry.yah your true your code is correct .but now if you have idea about sending text message to mobile free,please share .
Abdullahomaid
12-Jan-11 22:36pm
View
i am so sorry i update my question.i want to send text message from pc to mobile if you have any idea (every silly thing is important to me ) please help
Abdullahomaid
12-Jan-11 22:35pm
View
i am so sorry i update my question.i want to send text message from pc to mobile if you have any idea (every silly thing is important to me ) please help.
Abdullahomaid
28-Dec-10 22:41pm
View
thank you very much my Dear .now it is working ,wish you long life for you."Thank You+++++"
Abdullahomaid
28-Dec-10 21:58pm
View
Thank you jerrykid ,same thing i did but when reading is started other conrol is not working
let me share my whole code with you.
namespace soundConverter
{
public partial class Form1 : Form
{
SpVoice spvoice = new SpVoice();
private System.Threading.Thread thread1;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
thread1 = new System.Threading.Thread(readText);
thread1.Start();
}
private void button2_Click(object sender, EventArgs e)
{
openFileDialog1.InitialDirectory = "D:\\Documents and Settings\\omaid\\Desktop";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
ApplicationClass WordOper = new ApplicationClass();
String filePath = openFileDialog1.FileName;
Object file = filePath;
object nullobj = System.Reflection.Missing.Value;
Document doc = WordOper.Documents.Open(ref file, ref
nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj, ref nullobj);
Document doc1 = WordOper.ActiveDocument;
string data = doc1.Content.Text;
textBox1.Text = data;
}
}
private void button3_Click(object sender, EventArgs e)
{
thread1.Abort();
}
private void Form1_Load(object sender, EventArgs e)
{
int Volume1 = Convert.ToInt16(comboBoxVolume.Text);
int Rate1 = Convert.ToInt16(comboBoxRate.Text);
spvoice.Volume = Volume1;
spvoice.Rate = Rate1;
}
public void readText()
{
if (textBox1.Text != "")
{
spvoice.Speak(textBox1.Text, SpeechVoiceSpeakFlags.SVSFlagsAsync);
spvoice.WaitUntilDone(Timeout.Infinite);
}
else
MessageBox.Show("please insert your text to richtextbox");
}
}
}
Abdullahomaid
24-Dec-10 20:54pm
View
Thank You Dave Kreskowiak:
can you tell me, which 3rd party control shell i use"adobe reader lib" or something else.if adobe reader lib then help me .
long life to you.
Show More