C
Chumbles
Guest
Hi,
I have written some C# code for a winform application that takes in serial data, parses it and then sends a string to excel/notepad++ via the Sendkeys.Send function.
The sendkeys output is really fast (like a cut+paste) on my PC (windows 10 version 1809), and another PC.
Though it is much slower (can see the characters being 'typed' out one at a time, maybe 4 or 5 per second) on 2 laptops that I've tested the code on (windows 10, version 1903, and windows 7 version 6.1 build 7601).
I've tried to change app.config to force SendInput, ran the program as admin, and even tried turning speech recognition on, tried both send and sendwait, changed build options to x86... All with no effect.
It is definitely the sendkeys part as when i turn it off, the serial parsing updates as soon as the serial data comes in (update to a textbox).
Any ideas on why it is going much slower on the laptops would be appreciated as I am fresh out at the moment. The below takes a few seconds to finish, whereas on my PC is is less than 1 sec.
SendKeys.Send("im testing sendkeys. this is a test. test test test. ");
SendKeys.Send("\t");
Thanks!
Continue reading...
I have written some C# code for a winform application that takes in serial data, parses it and then sends a string to excel/notepad++ via the Sendkeys.Send function.
The sendkeys output is really fast (like a cut+paste) on my PC (windows 10 version 1809), and another PC.
Though it is much slower (can see the characters being 'typed' out one at a time, maybe 4 or 5 per second) on 2 laptops that I've tested the code on (windows 10, version 1903, and windows 7 version 6.1 build 7601).
I've tried to change app.config to force SendInput, ran the program as admin, and even tried turning speech recognition on, tried both send and sendwait, changed build options to x86... All with no effect.
It is definitely the sendkeys part as when i turn it off, the serial parsing updates as soon as the serial data comes in (update to a textbox).
Any ideas on why it is going much slower on the laptops would be appreciated as I am fresh out at the moment. The below takes a few seconds to finish, whereas on my PC is is less than 1 sec.
SendKeys.Send("im testing sendkeys. this is a test. test test test. ");
SendKeys.Send("\t");
Thanks!
Continue reading...