Auto what is your it -- autoit?

Source: Internet
Author: User

Lingyun and Jiajia are two developers in a software company. Because Lingyun arrived at the company three years earlier than Jiajia, Lingyun graduated almost 10 years earlier than Jiajia. Therefore, after graduating from college, Jia joined the company and joined Lingyun. The relationship was very simple. It was similar to the previous mentoring, but he can only be called a colleague in modern society.

On this day, Jia was coding at the desk, and suddenly the e-mail message popped out in the lower right corner of the screen. It was originally sent by Lingyun. The subject was very simple: help me try it.

"Oh? What is this ." Jia didn't care too much. He opened the email and saw an attachment in it, which is a compressed package.

Open the compressed package and there is an executable. EXE file in it. The icon has not been seen yet. It is a bit like the symbol of the delta army. Although I have some doubts in my mind, it is impossible for the company to send executable files in emails, because it may contain viruses or Trojans. But when I think about it again, I can't send bad things to me as a master, and I want to try it. I should know what it is and what it will not do.

Thinking about it, Jia double-clicked on the file to understand the pressure, but it was a little scared! The mouse and arrow on the screen are uncontrolled and run around like crazy mice without any regularity!

"Master, what are you doing? Did you pass the virus to me ?!"

In a twinkling of an eye, Ling yun looked at him with a bad smile. Jia almost fainted! But looking back at your own screen, the mouse and arrow have been back to normal, but fortunately, a cold sweat.

"What did you just send me ?" Jia is still worried.

"Oh, no. I just did a test, neither a virus nor a trojan ." Ling yun looks innocent. In fact, he smiled in his heart: it is a prank.

"No, I am scared to death. You have to compensate me ."

"How to compensate ?"

"You must tell me how your stuff was made !"

"Oh, that's the requirement. No problem ."

Said Ling Yun, returning to his computer, opened a file and called Jia. "Come and see, this is something that drives your mouse crazy ."

Jia ran over and saw a section on the computer screen of Lingyun.Code, Very simple code:

 

 
For $ I = 1 to 20 $ x = random (100,800) $ Y = random () mousemove ($ X, $ Y) Next

Jia was a little puzzled. Just a little bit of code, I just gave control of the mouse? It's incredible. And this code is a bit strange, not like the general language, neither Java nor C #, but a bit like VB, But the way variables are defined is wrong, besides, it seems that there is a function named mousemove in VB.

"Master, what code are you using ?"

"Oh, this is an autoit script ."

"Autoit? What is that ?"

"How to say it is a super powerful language used to write batch processing, and now there is a popular name called script language ."

"Oh, I have a little understanding about it. What can it do ?"

"I have just started my research, and I feel that the function is quite powerful, mainly to simulate your mouse and keyboard operations ."

"That's amazing, but it's dangerous !" Jia couldn't help but think of her mouse crazy look.

"Haha, technology itself is not good or bad. The problem is that people who use technology. This is just like the discussion on nuclear energy ."

"Yes. Haha ."

Jia bowed his head and looked at the super simple code.

"Oh, actually this code is very simple. I can guess what it means ."

"Okay, let's talk about it ."

Jia looked at it and said, "In fact, it is a for loop. It has been looping for 20 times. Every time two variable values are taken, it should be used as the coordinates on the screen, move the pointer to this position. Because the values of X and Y are random, my pointer is crazy just now, but it will end after 20 executions ."

Ling yun praised Jia's ability to read the code. "Yes, you fully understand it ."

Jia looked up and said with a smile: "Master, you are very kind. You didn't set the value of the cyclic variable to 200. Otherwise, I would be miserable, haha ."

Ling Yun is very happy. "That is it ."

"But you have to tell me everything you know, or I will report it to the company and say that you are sending me malicious code.Program!"

Well, it turned out to be a good man and a good man. But it was supposed to share this knowledge with Jia, and Ling yun thought of it and it was relieved.

"In the next few days, let's study this autoit together ."

"Great !"

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.