10.10.10

Send Keys With VB.NET 2010

Hi Everybody,
I would like to explain one of faq within this essay , how can I send keys with VB.NET 2010 windows application? If any question, please feel free to contact me y_turkeli@yahoo.com or yenerturkeli@v-basic.net.

1-) We are creating a new Windows Application Project (send_keys)



2-) We are designing this windows form in a similar way to the picture below



3-)We are writing this code

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("notepad.exe", AppWinStyle.NormalFocus)
SendKeys.Send(text_txt.Text)

End Sub


4-) Lets start application



2.10.10

My PC Talk with sapi.spvoice

Hi Everybody,
I would like to explain one of faq within this essay , how can I use SAPi with VB.NET 2010 windows application? If any question, please feel free to contact me y_turkeli@yahoo.com or yenerturkeli@v-basic.net.

1-) We are creating a new Windows Application Project (my_pc_talk)



2-) We are designing this windows form in a similar way to the picture below




3-)We are writing this code

Dim my_pc_talk

Private Sub start_btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles start_btn.Click

my_pc_talk = CreateObject("sapi.spvoice")
my_pc_talk.volume = 40
my_pc_talk.rate = 2
my_pc_talk.speak(text1_txt.Text)
my_pc_talk.pause()
End Sub





Private Sub btn_resume_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_resume.Click
my_pc_talk.resume()
my_pc_talk.speak(text2_txt.Text)
End Sub


4-) Lets start application



Have a great day