chidambaram
Well-known member
hi,
I am working in VB.NET 2003(.NET Framework 1.1).
I want to send the key Enter or Space to the process.
My code is
<CODE>
Dim p1 As Process() = Process.GetProcesses()
MsgBox(p1.Length)
For i = 0 To p1.Length - 1
If p1(i).MainWindowTitle() <> "" Then
MsgBox("p1(i).MainWindowTitle()" & p1(i).MainWindowTitle())
title = p1(i).MainWindowTitle()
If title = "JPCMS Web Client - Microsoft Internet Explorer" Then
Application.DoEvents()
SendKeys.Send("{ENTER}")
End If
End If
Next
End
</CODE>
when SendKeys.Send("{ENTER}") line is executed, the program will struck in that line.
How can i send the enter key to the process?
Urgent plz and thanks in advance....
I am working in VB.NET 2003(.NET Framework 1.1).
I want to send the key Enter or Space to the process.
My code is
<CODE>
Dim p1 As Process() = Process.GetProcesses()
MsgBox(p1.Length)
For i = 0 To p1.Length - 1
If p1(i).MainWindowTitle() <> "" Then
MsgBox("p1(i).MainWindowTitle()" & p1(i).MainWindowTitle())
title = p1(i).MainWindowTitle()
If title = "JPCMS Web Client - Microsoft Internet Explorer" Then
Application.DoEvents()
SendKeys.Send("{ENTER}")
End If
End If
Next
End
</CODE>
when SendKeys.Send("{ENTER}") line is executed, the program will struck in that line.
How can i send the enter key to the process?
Urgent plz and thanks in advance....