• ## Python can do anything! Today we can open and run computer software automatically!

Time：2019-11-12

Recently, we need to use software automation to do the project. Let’s share it with you!       Let’s take a look at Python operations:   First, how to open the software The first is to use the OS module, which is also the simplest one. If I want to open Notepad, I can: […]

• ## Call desert plug-in to send QQ and wechat message version C

Time：2019-10-30

Desert plug in: 3.1233 Map, color, literacy, word, window, mouse, keyboard 0. Register dm.dll; regsvr32 xxx\dm.dll 1. Add com reference; 2. Dmsoft calls; Principle: Find window hWnd → window activation → add message to text box → enter → window deactivation Screenshots:   Code: class Form1 : Form { public Form1() { var dm = […]

• ## Perl Chinese processing skills

Time：2019-10-19

Perl has been using utf8 encoding internally to represent characters since 5.6, that is to say, there should be no problem in the processing of Chinese and other language characters. We only need to make good use of the module encode to make full use of the advantages of Perl utf8 characters. Let’s take the […]

• ## C# Memorandum for calling c++ functions through PInvoke

Time：2019-9-29

As we know, C/C++ functions that are called can only be global functions that cannot call member methods in classes. The called C function must use extern “C” inclusion to ensure that the generated rules of the derived function name are consistent with. NET. Function call conventions usually use WINAPI, which means _stdcall, and. net […]

• ## In-depth analysis of koa’s asynchronous callback processing

Time：2019-9-25

1. Callback Pyramid and Ideal Solutions We all know that JavaScript is a single-threaded asynchronous non-blocking language. Asynchronous non-blocking is of course one of its advantages, but a large number of asynchronous operations will inevitably involve a large number of callback functions, especially when asynchronous nesting, there will be callback pyramid problems, making the code […]

• ## Two complementary SPWM waves (HAL library) based on STM32F767

Time：2019-9-14

SPWM wave refers to the PWM wave whose duty cycle varies sinusoidally. It is generated by adjusting the duty cycle of PWM wave in the interruption of timer. For two complementary SPWM waves, one is low level’0’and the other is high level’1′, that is, the two channels are complementary. For STM32F7, the use of advanced […]

• ## A Method of Finding Window Handles Using Wincc C Script

Time：2019-9-10

With regard to the use of window handle, many related articles can be found on the Internet. This paper takes the windows API interface function as an example to briefly introduce the basic use, mainly including finding the form, writing data to the found form, closing the form, maximizing and minimizing the operation. 1. Find […]

• ## Simple Learning Five Ways to Deal with Vue.js Exceptions

Time：2019-8-14

Errors To test various exception handling techniques, I deliberately triggered three types of errors. The first is to quote a variable that does not exist: <div v-cloak> Hello, {{name}} </div> The above code will not throw an error after running, but there will be a [Vue warn] message on the console. You can see the […]

• ## Perl uses variables as handles

Time：2019-8-7

Copy codeThe code is as follows: #!/usr/bin/perl -wuse strict;use warnings;use FileHandle;my %fh;my @array = (1..10);for(1..5){        open $fh{$_},”>$_.txt” or die;}for(1..5){# print$fh {$} “$__ n”; error        $fh{$_}->print( “$_\n” );# For functions in FileHandle (my$h = $fh {$}; print $h “$__ n”; } Note: The above errors are due to the fact that <> is not a […]

• ## Upload files in curl put mode

Time：2019-7-17

Sender <?php function curlPut($destUrl,$sourceFileDir, $headerArr = array(),$timeout = 10) { $ch = curl_init(); // Initialize curl Curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); // Returns a string without direct output Curl_setopt ($ch, CURLOPT_URL,$destUrl); //Set the URL put to curl_setopt($ch, CURLOPT_HTTPHEADER,$headerArr); curl_setopt($ch, CURLOPT_TIMEOUT,$timeout); Curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false); // Not validating peer certificates Curl_setopt ($ch, […]

• ## Improvement of XML Processing by Calendar Firefox 2.0

Time：2019-4-7

Firefox 2.0 has several important improvements in XML support. At present, its user deployment is in full swing. Understand improvements to Firefox 2.0 XML features, including controversial changes in RSS Web feed processing.Given the role of a new application platform, Web browsers are probably the hottest software today. This is an exciting time for software […]