Vb.net sendkeys, letters duplicate?

I created a simple test with SendKeys, and tried both SendWait and Send.

 Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click
    System.Threading.Thread.Sleep(10000)
    SendKeys.SendWait("If you can read this, it works." + "{ENTER}")
End Sub

I tested in skype, and a few of the letters doubled. I tested in Flash, I got "Iffff yyouu cccaaaannn rrreaaaddd thhhiiisss,,, iiittt wwwooorrrrkkks."

Clearly the issue is caused by lag. What can I do to prevent doubling (or tripling) of letters? I'm probably missing something big here...

Answers


In your app settings, try

<appSettings>

<add key="SendKeys" value="SendInput"/>

</appSettings> 

If that doesn't work, try:

<appSettings>

<add key="SendKeys" value="JournalHook"/>

</appSettings> 

Source: http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.sendwait.aspx

"... As a result, the SendKeys class may behave differently on different operating systems ..."


Need Your Help

Syntax for hsin query in solr

lucene solr

I have created a database and have used dataimport for retrieving the data. I tried out the hsin query: http://localhost:8983/solr/select/?q=name:Denver AND

Listview wont show stackmob query list

java android android-listview listadapter stackmob

Hello im trying to get stackmob to query a items to a listview everything is working except the result list appearing in the listview i have tried search all over the internet and have found nothin...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.