摘要: 如果是使用virtualenv,请确保已激活运行环境 不知道怎么激活的,请按以下步骤来: 尝试使用终端通过更改目录(cd)命令导航到包含虚拟环境的文件夹。到达后,尝试输入: source ./venv/Scripts/activate 另外,尝试打开venv文件夹,并确保您的激活文件位于“脚本”文件 阅读全文
posted @ 2019-12-19 13:29 strive-sun 阅读(1576) 评论(0) 推荐(0)
摘要: 直接上代码: import win32gui import win32ui from ctypes import windll import Image hwnd = win32gui.FindWindow(None, 'Calculator') # Change the line below de 阅读全文
posted @ 2019-12-16 17:06 strive-sun 阅读(2637) 评论(0) 推荐(0)
摘要: 前提:使用电子应用程序,QT,WPF ...等框架制作的应用程序将响应GetDC或打印黑屏GetWindowDC。解决此问题的唯一方法是确保目标应用程序可见,并在目标应用程序所在的特定坐标处为桌面截图 C++代码: #include <fstream> #include <vector> #incl 阅读全文
posted @ 2019-12-16 17:02 strive-sun 阅读(2108) 评论(1) 推荐(0)
摘要: 比如: 使用 HWND child = CreateWindowEx(0,L"childclass",NULL,WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS,100, 100, 500, 500,hWnd,(HMENU)(1),hInst,NULL);创建子窗口时会 阅读全文
posted @ 2019-12-13 15:15 strive-sun 阅读(3066) 评论(0) 推荐(0)
摘要: 写下这是为了自己复习的。 主要实现的是给File Explorer注入鼠标钩子,以检测鼠标是否在File Explorer上点击 .cpp #include <Windows.h> #include <stdio.h> #include <psapi.h> #include <shlwapi.h> 阅读全文
posted @ 2019-12-11 08:59 strive-sun 阅读(820) 评论(0) 推荐(1)
摘要: Code: #include <windows.h> #include <tchar.h> #include <iostream> BOOL flag = TRUE; DWORD WINAPI ThreadProc2(LPVOID lpParameter) { INPUT input[2]; Zer 阅读全文
posted @ 2019-12-05 17:33 strive-sun 阅读(689) 评论(0) 推荐(0)
摘要: Client: #include <WinSock2.h> #include <Windows.h> #include <stdio.h> #pragma comment(lib, "Ws2_32.lib") #pragma warning(disable: 4996) #define Port 6 阅读全文
posted @ 2019-12-03 10:34 strive-sun 阅读(5131) 评论(0) 推荐(0)
摘要: DLL: // dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" #include <Windows.h> #include <stdio.h> INT APIENTRY DllMai 阅读全文
posted @ 2019-12-02 09:09 strive-sun 阅读(915) 评论(0) 推荐(1)
摘要: 下载对应版本的 chromedriver,不知道版本的请参考: https://stackoverflow.com/a/55266105/11128312 接下来将下载的 chromedriver.exe 放到 python 文件下 如图: 后面就可以在 cmd.exe 里面尽情发挥了 最小的例子: 阅读全文
posted @ 2019-11-22 15:20 strive-sun 阅读(5447) 评论(0) 推荐(2)
摘要: 今天稍微熟悉了一点汇编语法,并就一个案例试验了一下 VS里常见的汇编指令请见:https://blog.csdn.net/sinat_27382047/article/details/72810788 我就目前一个api做解释 CaptureStackBackTrace: 通过在堆栈上走动并记录每一 阅读全文
posted @ 2019-11-20 15:13 strive-sun 阅读(583) 评论(0) 推荐(0)