Posts

Showing posts from 2018

How to connect computer using hotspot by create programme in VB .Net

I am going to explain how to create windows utility for create hotspot and connect it with other machine Step : 1. Take 2 text box one for user id (i.e txtUserName) and one for password (i.e txtPassword) 2. Take 1 button using that we can execute the command to create hotspot using entered credential. 3. call following sample code to create hotspot on click of button. // Sample Code Public s As String Public i As Integer Public flag As Boolean = True If (flag = True) Then flag = False Button1.Text = "Stop" txtUserName.Enabled = False txtPassword.Enabled = False i = txtPassword.TextLength If (i < 6) Then MessageBox.Show("Password must be >= 6 character", "Password") Else s = "netsh wlan show drivers" + vbNewLine + "netsh wlan set hostednetwork mode=allow ssid=" + txtUserName.Text + " &

Text To Speech using VB Script

Here I am going to explain how to convert text to speech using VB Script Code Snippets : Dim speaks, speech speaks = "Welcome " + TextBox1.Text + "How Are You" // Your text for convert into speech speech = CreateObject("sapi.spvoice") // Create object of speech speech.speak(speaks) // Convert text to speech

Identify reading end using Barcode Scanner

While reading the text from the barcode scanner if you want to check if the reading is end or not. When reading has been completed from barcode scanner it will append the enter key in text and if you want to extract text automatically while reading completed then you can check using below javascript code snippets. // pass event as the object from where you are reading text through barcode. function getScanneText(event) { if(event.e.keyCode == 13) // ascii value of enter key { // do something here. } } call above function on keyup event of textbox and check, if enter key is pressed or not.