Home > Net >  Make propaganda apparatus, and a solution
Make propaganda apparatus, and a solution

Time:11-01

recently doing customer service, in the original software have a quick word of, I feel a little less than, or I don't use the cool place, want to get one,
But when to send, there is a problem:


Using SendKeys. Send (pString); When sending letters will conflict with Chinese input method, input is in Chinese!!!!
After I try to use the clipboard, and then simulate the Ctrl + v to send, the question is: takes up the clipboard , online to find a way, after use the clipboard to restore the original content, but the use of the too frequently program will crash!!!!! and want to send by mixing, ran into trouble again!!!!!

Masters what is the solution? Such as will send somewhere in the content stored in memory, and then send??



I level is limited, with c #, hope ace to pay attention to the, thank you


CodePudding user response:

Virtual a richtextbox, content with figure, an image is generated, sent out
https://www.haolizi.net/example/view_14837.html

CodePudding user response:

Download the example to score, I don't have to download, but on my research, I pure text, save images to can, by mixing seems still not feasible

CodePudding user response:

Then top up?

CodePudding user response:

If by external Windows message pump inserted, then your client program to ensure that in the main thread operation SendMessage statements, using the clipboard is to ensure that the main thread, and before writing should be Clear to Clear the clipboard,

CodePudding user response:

Programming is to use the best service at the end () by the operating process of the API and interface to operation, can guarantee the straightforward, on communication, direct use of the system through the hundreds of thousands of tens of thousands of times the test method, try not to around a variety of easy to collapse of the system level "back door" approach to communication,

CodePudding user response:

The sendmessage or postmessage, had better use
  •  Tags:  
  • C#
  • Related