length of string in SimulateTextEntry

Dec 24, 2010 at 2:57 PM
Edited Dec 24, 2010 at 2:58 PM


very powerfull project, but i've a probleme with this method : InputSimulator.SimulateTextEntry(strTextToSend);

i want to send a string which length about 10ko, or may be more

or it's truncated...

Is there a limit on the size of the string for this method?

Is it possible to manage that somewhere?


Aug 18, 2012 at 10:35 PM

Same problem for KeyboardSimulator.TextEntry(Text) in the last compilation of the source code.

I think that is keyboard buffer overflow. Application which handles your simulated text entry can't do it so fast as you simulate the text flow.

I used to divided my text string with 10 characters per substring and used Thrad.Sleep(5)  between simulating the text entry of. It works but it isn't right.

I need to control keyboard buffer to protect it from overflow. How can I do it?

My working code:

KeyboardSimulator cc = new KeyboardSimulator();
int i = 0;
string s = "";
foreach (Char c in Text) // string Text - whole string to simulate
   s += c;
   if (i == 10)
      i = 0;
      s = "";

Need help. Thanks in advance.