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.GetProc esses()
MsgBox(p1.Lengt h)
For i = 0 To p1.Length - 1
If p1(i).MainWindo wTitle() <> "" Then
MsgBox("p1(i).M ainWindowTitle( )" & p1(i).MainWindo wTitle())
title = p1(i).MainWindo wTitle()
If title = "JPCMS Web Client - Microsoft Internet Explorer" Then
Application.DoE vents()
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.GetProc esses()
MsgBox(p1.Lengt h)
For i = 0 To p1.Length - 1
If p1(i).MainWindo wTitle() <> "" Then
MsgBox("p1(i).M ainWindowTitle( )" & p1(i).MainWindo wTitle())
title = p1(i).MainWindo wTitle()
If title = "JPCMS Web Client - Microsoft Internet Explorer" Then
Application.DoE vents()
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....