& Quot; HK & quot; create a QQ screen and a hk qq Screen

Source: Internet
Author: User

"HK": Create a QQ screen and a hk qq Screen

 

What is a screen reader? Can I eat it? Can I eat it delicious?

Um. The screen refresh is something that can happen regularly.

Screen swiping can be applied to many aspects, such as when others ignore you or when QQ fights.
Warning this tutorial is for study purposes only and is not intended for other purposes!
--- Prosperity, democracy, civilization, harmony, freedom, equality, justice, rule of law, patriotism, dedication, integrity, and friendliness ---

Meow, go to the topic.

I. Preparations

We only need to use a few parameters:

1. Screen flushing content

2. Time of each brush

3. Press Enter or press Ctrl + Enter to send

 

Ii. Start Encoding

At the beginning, I chose Timer, but there may be a phenomenon that no message is sent or pasted before it is pasted.

So I came up with a good idea: use while (true) and await Task. Delay () to control:

The following code uses C # WPF as an example:

First, you need an API that simulates the buttons (WinForm can also be used)

1         [DllImport("user32.dll", EntryPoint = "keybd_event", SetLastError = true)]2         public static extern void keybd_event(Keys bVk, byte bScan, uint dwFlags, uint dwExtraInfo);

Next we need to start using him.

1 int ont = 0; 2 Action a = new Action (async delegate 3 {4 while (true) 5 {6 if (. text = "start") // you can change the Condition 7 break to be stopped here; 8 System. windows. clipboard. setText (tx. text); 9 if (on. isChecked = true & tw. isChecked = false) 10 {// use the Enter method 11 keybd_event (Keys. controlKey, 0, 0, 0); 12 await Task. delay (10); 13 keybd_event (Keys. v, 0, 0, 0); 14 await Task. delay (10); 15 keybd_event (Keys. controlKey, 0, 2, 0); 16 await Task. delay (10); 17 keybd_event (Keys. enter, 0, 0, 0); 18} 19 else20 {// use Ctrl + Enter Method 21 keybd_event (Keys. controlKey, 0, 0, 0); 22 await Task. delay (10); 23 keybd_event (Keys. v, 0, 0, 0); 24 await Task. delay (10); 25 keybd_event (Keys. controlKey, 0, 2, 0); 26 await Task. delay (10); 27 keybd_event (Keys. controlKey, 0, 0, 0); 28 await Task. delay (10); 29 keybd_event (Keys. enter, 0, 0, 0); 30 await Task. delay (10); 31 keybd_event (Keys. controlKey, 0, 2, 0); 32} 33 ont ++; 34 tit. text = "screen Flushing Times:" + ont; 35 await Task. delay (t); 36} 37}); 38 a (); // start

Coding is complete, and the next step is to test

Iii. Test Run

Um can be ignored here

Then I was kicked by the Administrator QAQ.

 

-- End

 

If you like it, follow me quickly.

Source code: https://github.com/TwilightLemon/LemonMG

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.