I wanted to check in with you folks and find out if anyone has any good suggestions for throttling sendkeys. I'm creating a string that contains anywhere from 4 to 10 lines of data. The data lines do not exceed 75 characters per line. What's happening is I sometimes lose formatting..
At first I was having a tremendous amount of problems just getting the data to be written properly. At times (even after doing a sendkeys.flush) I would end up with garbage characters in my output. I then started using the ToCharArray function on my string and I seem to have aleviated that particular problem however I occassionally get incorrect formatting. An example of the output I'm seeing looks something like this:
dATA linE ONE
DATA LINE TWO
DATA LINE THREE
DATA LINE fOUr
Ideally all of that output would be in uppercase. It's also worth noting here that this data is being written to a third party application that contains a text box. I have tried over coming this problem by simply putting my string onto the clipboard and pasting the data into the third party apps text box... however that does not work correctly. For some reason if I take this approach only a few characters of my first line of data actually gets pasted. This is related to how the text box is setup apparently because I'm able to manually duplicate this same behavior if I simply copy and paste data from notepad to the applications text box using the Copy and Paste commands.
Any suggestions on this issue are greatly appreciated!