Using Qt to Grab Desktop and Mouse under windows
Can make Qt under
grabWindow(WId window, int x = 0, int y = 0, int width = -1, int height = -1)
Create and return a QPixmap by grabbing the contents of a given window (x, y, width, height).
The parameters (x, y) specify the offset in the window, and (width, height) specify the area to be cop ...
Posted by the-Jerry on Thu, 10 Oct 2019 07:36:15 +0200
pygame creates a simple window
Before that, we had a basic understanding of the common modules of Pygame, and some methods and functions of common modules. Now we can simply use pyGame to create a window that can change color. Let's see:
First we need to import modules:
import pygame, sys
Then you need to initialize pygame, and I define a pygame_test() method, so if you ...
Posted by CodeJunkie88 on Tue, 08 Oct 2019 12:34:20 +0200
Golang Reptiles: Use of colly Library
1. Introduction to colly:
Colly is a Golang framework for building Web scraper. With Colly, you can build complex Web scrapers, ranging from simple scrapers to complex asynchronous Web crawlers that handle millions of Web pages. Colly provides an API for executing network requests and processing recei ...
Posted by Mikell on Mon, 07 Oct 2019 22:35:11 +0200
JAVA Graphics2D synthesis and image add text
Due to business needs, it needs to be on the background map.
1. Write the title and author of the research paper dynamically and change the line automatically.
2., WeChat small program two-dimensional code is synthesized on the background map.
The effect is as follows
The code is as follows ...
Posted by kaedus on Mon, 07 Oct 2019 05:22:50 +0200
Blank Lines at the Top of Website Pages & Reasons for Characters and Perfect Solutions
From Personal Blog: http://hurbai.com
Sometimes a blank line appears on the head of the webpage. Looking at the source code, it is found that there is an illegal character  at the beginning of the body, because the page's encoding is UTF-8 + BOM.
UTF-8 + BOM encoding will normally appear in the windows operating system, such as WINDO ...
Posted by roze on Mon, 07 Oct 2019 04:15:02 +0200
Python script -- port scanner
A simple port scanner written by python, Python environment 3.7.0, windows system
Scanning whether the specified port is open for a given hostTCP connection scanning uses three handshakes of TCP to determine whether the host port is open or not. After confirming that the host port is open, send a message to the port, receive the message retu ...
Posted by facets on Sun, 06 Oct 2019 14:45:30 +0200
Start-up and Modification of Programs Published by Unity
try
{
string path = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
RegistryKey rgkRun = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
if (rgkRun == null)
{
...
Posted by quasiman on Sun, 06 Oct 2019 07:00:34 +0200
Echarts (second charts adaptive browser window scaling font adaptive browser)
1. In recent pc projects, multiple echerts charts have been used in the pages, requiring adaptive browser windows.
Reason: Because charts don't resize adaptively to the browser's window size.
Solution: Introduce window.addventListener... below setOption.
drawLine(month, value, index) {
v ...
Posted by Gazan on Sat, 05 Oct 2019 18:45:52 +0200
Using Gulp on Windows
Take Windows 10 as an example
premise
NodeJS has been installed and configured.
install
cmd enters the Windows command line window, enters the test directory, C: Develop gulptest, and executes under the test directory if no creation is required.
C:\Develop>mkdir gulptest
C:\Develop>cd gulp ...
Posted by blackhawk08 on Sat, 05 Oct 2019 16:37:35 +0200
Python script for generating Chinese graphic verification code
Links to the original text: https://www.cnblogs.com/whu-zeng/p/4855480.html
Note: this script is not original, just a little adjustment based on the original author's code. Original links: https://www.cnblogs.com/whu-zeng/p/4855480.html
Many ...
Posted by ligraci on Sat, 05 Oct 2019 13:25:36 +0200