会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一叶扁舟
2019.08.23 慢慢积累,总会变强大的 2024.07.09 温故而知新 可以为师矣
博客园
首页
新随笔
联系
管理
上一页
1
···
31
32
33
34
35
36
37
38
39
下一页
2019年12月19日
使用pycharm,配置环境
摘要: 如果是使用virtualenv,请确保已激活运行环境 不知道怎么激活的,请按以下步骤来: 尝试使用终端通过更改目录(cd)命令导航到包含虚拟环境的文件夹。到达后,尝试输入: source ./venv/Scripts/activate 另外,尝试打开venv文件夹,并确保您的激活文件位于“脚本”文件
阅读全文
posted @ 2019-12-19 13:29 strive-sun
阅读(1576)
评论(0)
推荐(0)
2019年12月16日
使用python获得屏幕截图并保存为位图文件
摘要: 直接上代码: 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)
2019年12月13日
使用CreateWindowEx创建子窗口的注意事项
摘要: 比如: 使用 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)
2019年12月11日
win32 - 使用SetWindowHookEx注入global hook
摘要: 写下这是为了自己复习的。 主要实现的是给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)
2019年12月5日
使用Sendinput以及GetAsyncKeyState来模拟按键延时
摘要: 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)
2019年12月3日
C++使用socket传输图片
摘要: 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)
2019年12月2日
使用CreateRemoteThread注入DLL
摘要: 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)
2019年11月22日
如何在 python 中使用 chromedriver
摘要: 下载对应版本的 chromedriver,不知道版本的请参考: https://stackoverflow.com/a/55266105/11128312 接下来将下载的 chromedriver.exe 放到 python 文件下 如图: 后面就可以在 cmd.exe 里面尽情发挥了 最小的例子:
阅读全文
posted @ 2019-11-22 15:20 strive-sun
阅读(5447)
评论(0)
推荐(2)
2019年11月20日
关于汇编用法--1
摘要: 今天稍微熟悉了一点汇编语法,并就一个案例试验了一下 VS里常见的汇编指令请见:https://blog.csdn.net/sinat_27382047/article/details/72810788 我就目前一个api做解释 CaptureStackBackTrace: 通过在堆栈上走动并记录每一
阅读全文
posted @ 2019-11-20 15:13 strive-sun
阅读(583)
评论(0)
推荐(0)
上一页
1
···
31
32
33
34
35
36
37
38
39
下一页
公告