Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27404

Sendkeys.Sendwait Problem

$
0
0
Ok, the problem is I never used the Sendkeys thing. I have code like this:

VB Code:
  1. Imports System.Windows.Forms
  2.  
  3. Module Module1
  4.     Sub Main()
  5.         Dim userInput As String = Nothing
  6.         Console.Title = "Tracker v1.0"
  7.         Console.BackgroundColor = ConsoleColor.Black
  8.         Console.ForegroundColor = ConsoleColor.Yellow
  9.         Console.Clear()
  10.         Console.WriteLine()
  11.         Console.WriteLine("Type ""help()"" to get more informations. ")
  12.         Console.WriteLine("Type ""clear()"" to clear application.")
  13.         Console.WriteLine("")
  14.         SendKeys.SendWait(">>>")
  15.         userInput = Console.ReadLine()
  16.         If userInput = "clear()" Then
  17.             Console.Clear()
  18.         End If
  19.         Console.ReadLine()
  20.     End Sub
  21.  
  22. End Module
You see, when i type something in the same line as" >>> " that and after I press enter, nothing happend. I want to get that input of user. How?

Viewing all articles
Browse latest Browse all 27404

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>