Chapter 59: Programmer's Inspiration

Since "abandoning the tour", Liu Ronghua has come from time to time to encourage Sun Yimin and try to pull him into the water again.

After being politely rejected by Sun Yimin on this day, Liu Ronghua sighed again: "If you don't play with me, what fun do I have?" ”

Sun Yimin's response to this was: "You have a wife, sister, brother, and subordinates in the game, is there still one less me?" ”

"Don't look at me in the game, but I always feel a little lonely in front of the computer. I need a real-life playmate. Liu Ronghua said helplessly.

To be honest, Sun Yimin does have a little urge to return to the game world in his heart.

That day, He Xiaoquan revealed about the goddess's unintentional appearance, which made him have always had a strong curiosity in his heart, and he wanted to appreciate the demeanor of this "goddess" level girl in He Xiaoquan's mouth.

He suddenly felt very strange, he had always been dismissive of seeing netizens and the like, but now he had this kind of thought. If Liu Ronghua learned this, he would definitely be laughed at.

In view of the promise to He Xiaoquan, he did not inform Liu Ronghua of He Xiaoquan's image description of the goddess.

Despite this, when he thought of the legendary goddess, he couldn't help but initiate this topic to Liu Ronghua: "If your sister is a woman who looks like a country, how can I win her heart?" ”

"What if? Why would you be so if? Liu Ronghua was looking at him with curious eyes at this time.

"Well, it's just idle and boring to talk and have fun." Sun Yimin disguised.

"Alright! If that's the case, you'll have to take it one step at a time. Liu Ronghua paused, took a puff of cigarette, and said slowly, "First of all, it's obvious that you can only be regarded as netizens, so if you want to chase her, you have to start from the game world." ”

"That's right," Sun Yimin said, "but how to do it?" ”

"The first thing you have to do is to recreate a good image in her mind, and that's the first step."

"Are you saying that I confessed to retreating in the face of Murong's challenge before, so that she looked down on me?" Sun Yimin asked.

"That's right, that's what it means," Liu Ronghua nodded, "In human society, most women belong to the disadvantaged group, so they identify with and advocate the strong in their bones. This is true both in real life and in the virtual game world. In reality, women worship those who are capable and talented, while girls in the game identify with game gods with high combat power and strong gang forces. So you have to improve your combat power, and then challenge Murong and defeat him. So as to establish your own image of a strong person and make her look up to you. This is the first step in pickling girls. ”

"This ...... You know that I don't have the financial means, and it's useless to say it. I can't afford hundreds of thousands of dollars. Sun Yimin sighed, looking lost.

"Hey, you look like you're lost." Liu Ronghua looked surprised, "The discussion we just discussed was based on an assumption, that is, the goddess is really the goddess in your mind, but in fact, this possibility is very small, so you don't have to worry about this at all." ”

Sun Yimin realized that he was out of shape, and said with a smile: "Yes, I'll just talk about playing." ”

"It doesn't matter if you charge money or not, it's okay to come back and play slowly with me!" Liu Ronghua pleaded.

"I'll think about it again......" Sun Yimin said perfunctorily.

At this moment, although he had a little idea of wanting to return to the game, the cruel reality was in front of him, and he knew that he would inevitably face Murong's provocation when he went back. Liu Ronghua can't help him with this.

In addition, even if the image is restored in the game, it may not be easy to see the goddess in reality.

Although the goddess is Liu Ronghua's younger sister, after all, this is just an interpersonal relationship that belongs to the virtual world. Sun Yimin remembered that the goddess made it clear to him in the game world that he didn't see netizens. And Liu Ronghua once mentioned an invitation to meet her, but was refused.

But in fact, seeing the goddess is not his ultimate goal. After He Xiaoquan's verbal description, the unintentional "image of the goddess" of the goddess has been deeply rooted in his heart. At this time, in addition to wanting to meet her and satisfy his curiosity, he wants to establish a close relationship with her.

Whatever the purpose, the first step he had to do was to reinvent his image in her mind.

On the day of abandoning the tour and saying goodbye, the goddess's slightly contemptuous attitude towards Sun Yimin has always made him angry, and he thinks: If you want to return to the game, you must not be despised by her again for the same reason. He must restore his dignity, no longer be easily humiliated by Murong, and there is no need to fear and avoid him everywhere. For this reason, he must have enough strength to be able to compete with Murong and even defeat him in the arena.

But it is clear that it will be difficult for Sun Yimin to do so. Even if he was willing to pay so much money to achieve the same combat power as Murong, in terms of combat skills, it was difficult to resist Murong's miraculous manipulation.

And he didn't have time to spare a few hours a day to practice keyboard operations like Murong did. This is simply not realistic for him as a busy office worker. Thinking of this, Sun Yimin felt a little lonely in his heart.

Liu Ronghua thought that his request made Sun Yimin feel embarrassed, so he changed his words and said: "Okay, I won't force you, big programmer!" If you don't play, don't play, whatever you want. I'd like to ask you a small favor, though. ”

"Say it, I will help if I can." Sun Shuang hurriedly agreed.

"It's certainly not difficult for you, I want to ask you to help me make a computer software." Liu Ronghua said.

Sun Yimin smiled and teased: "Aren't you yourself a graduate of computer science, and people who can use computer theory to explain the philosophy of love still need help from others to make a small program?" ”

"Alright, don't be sarcastic." Liu Ronghua glanced at him and said, "You know that everything I learned in school has been returned to the teacher." ”

"It's okay, anyway, you don't need the microcomputer principle and C++ to sell clothes," Sun Yimin said with a smile, "Let's hear it, as long as the project is not too big, I can help you do it for free." ”

"On the contrary, the project couldn't be smaller." Liu Ronghua said, "I only need a small program, and the requirements are as follows: the window is hidden when running, and of course I can still use shortcuts to call up the interface when I need it." Its function is to record which software has been opened by the computer user, as well as to record the traces of keyboard keystrokes. ”

"What do you want to do?" The sensitivity of the programmer made Sun Yi's police feel guilty. Liu Ronghua's request surprised him a little.

"Don't ask so much, you just say can you do it?" Ryu asked.

Sun Yimin thought for a long time and replied: "If you want to put this thing on someone else's computer and want to steal any information, I'm afraid it's not practical." Most computers have security software, and even if I make it for you, it will be killed in seconds. ”

"I don't install other people's computers, I install my own computers. I can get the security software to acquiesce to it, so it's always okay, right? Liu Ronghua asked.

This made Sun Yimin very puzzled: "What's the use of pretending to be on your own computer?" Monitor yourself? Do you still have multiple personality symptoms? ”

"I'm talking about my own computers, which are the work computers in the company. I now suspect that employees don't have to work at work, and secretly surf the Internet to entertain while I'm not around. I just want to see, what are they doing on the computer? ”

"Isn't there surveillance?" Sun Yimin asked rhetorically.

"Surveillance is sometimes not clear. It's also tiring to look up. Liu Ronghua said.

Sun Yimin fell into deep thought, and after a long time, he rejected Liu Ronghua: "It's no problem for me to make such a thing, but I won't help you do it." ”

"Why?" Liu Ronghua asked.

"I have my professional ethics and never touch the bottom line of hacking." Sun Yimin's explanation is simple and straightforward.

But Liu Ronghua still seems to be unwilling: "I pay you wages, even if I do my brother a favor?" ”

"That's not going to work either." Sun Yimin rejected him again, and his tone was categorical. At this time, he was suspecting that Liu Ronghua's purpose might not be as simple as he said.

Liu Ronghua was a little disappointed and lamented: "Alas...... I only blame myself for not studying well in college. ”

"Alas, as an undergraduate student majoring in computer science, you are still in a state of ignorance of programming knowledge, pitiful." Sun Yimin said sarcastically.

Liu Ronghua glanced at him, sighed, and laughed at himself: "There is very little time to learn, it's just that I was too playful when I was studying." Or do you have a high consciousness, change your evil and return to the right halfway, abandon the darkness and turn to the light, learn a good craft, and not waste 4 years of youth. ”

At this time, Sun Yimin was afraid that Liu Ronghua would misunderstand him, so he patted him on the shoulder and repeated the reason with him: "It's not that I deliberately didn't help you, it's that there are some things I can't do." ”

In fact, this is indeed the bottom line of his work ethic. His technical skills are better than any computer software development and operation, but the reason why he became a programmer, not a hacker, is precisely because of this bottom line in his heart.

The conversation is indispensable.

Before going to bed, I thought of Liu Ronghua's reluctant invitation during the day, and suddenly became curious. Although he couldn't agree to Liu Ronghua's request, his professional habits made him still think about the implementation process of this software function in his heart at the moment.

On second thought, there seemed to be only one way to do it, and that was to take an API function that I had heard about a long time ago, which seemed to have appeared in some old book, but which he had programmed for so many years and never actually called.

Sun Yimin dragged out his suitcase from under the bed, took out a few computer books brought back from his hometown and began to flip through them

dows programming".

The title of this book may seem extremely ordinary, but it is his treasure. It's just that this book is no longer available on the market. Although computer books with similar names are everywhere in the market, there is only this one, which is recognized by Sun Yimin because of the meticulous and unique explanation of the author's ideas. And the content of the book involves a lot of relatively unpopular knowledge, which cannot be seen in many other similar books. Among them is the "hook function" he is looking for today.

He went over it again: the function is actually to intercept the input message of a given thread, such as a keyboard and mouse message, and after interception, the programmer can analyze the content contained in the message, such as the information contained in the key message which key on the keyboard was pressed. Once the analysis is complete, you can do whatever you want: you can return the message to the original thread as it is, or you can modify the message and return it, or you can even intercept the message without returning it. [Please go to (1)(7)К to read the genuine version]

This makes Sun Yimin wonder: why does Microsoft arrange such an API function for developers to call? This seems completely unnecessary and poses a certain security risk.

After so many years of working as a programmer, this is the first time he has used this function in the ideation process.

WHILE ILLUSTRATING HOW THIS FUNCTION CAN BE USED, THE AUTHOR MENTIONS ANOTHER API FUNCTION, SENDMESSAGE(), WHICH SENDS VIRTUAL WINDOW MESSAGES, WHICH PIQUED HIS INTEREST. And this function, he has not used it once in his years of programming.

Looking at the prototype and introduction of the function in the book, Sun Yimin's mind suddenly flashed a glimmer of inspiration. This inspiration was like a meteor streaked across the sky, and in an instant, it lit up the night sky of his thoughts.

He remembered that He Xiaoquan had explained to him before that the key to winning the Overlord PK Ice was to operate the hand speed to the point of speed. And this kind of operation speed, human flesh is almost impossible to do, but if you can use a program instead of a human hand, send virtual buttons to the game window, and use a program instead of a human brain, obtain the status data of the other character's and make a judgment in an instant. Then it is possible to achieve such a combat speed.

If you can design such an auxiliary program. can defeat that Murong (Qiu Xin) under the condition of equal combat power, so as to save face in the game. Then, he can continue to play happily with Liu Ronghua without obstacles, and he can also chase after that goddess without any intention, without fear of Murong provocation.

As soon as he said that, he got up from the bed again and opened the VC60 on the computer. He spent a whole night writing and testing, and succeeded in using a program to simulate the keys by hand. But here's the thing: this doesn't necessarily solve the ultimate problem – auto-combat.

Because this function is only a one-way transmission of button information, although it can increase the speed of the buttons, it does not give any strategy to the combat process. For example, the program can't determine whether your character is being controlled or not, and which control skill the enemy is under the influence of, so as to decide whether you want to get out of it, and which control skill to use to get out. Also, before deciding to use a skill, make sure that the ability is currently on cooldown - otherwise it won't be cast even if the key is pressed. Furthermore, the program needs to judge the various states of the opponent during the battle, so as to make its own combat decisions.

To put it bluntly, the crux of the current problem is that there is no data to judge and make combat decisions. This includes information such as the character's own and opponent's health, how much energy remains, whether a skill is cooled down or not, and the character's own buffs and debuffs.

And how do you get this data and status? That's a problem.

It's late at night. Sun Yimin plans to fall asleep and continue to think and solve this problem tomorrow.

But the excitement in his head kept him awake all night.