- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 全局钩子Hook
1)下钩HHOOK g_hook = NULL; g_hook = SetWindowsHookEx(//WH_MOUSE//设置鼠标钩子 WH_MOUSE_LL//设置键盘钩子 WH_KEYBOARD_LL , MessageBoxProc, GetModuleHandle(NULL), NULL);2)卸钩if(g_hook) UnhookWindowsHookEx(g_hook);//卸载HOOk函数3)钩子函数LRESULT...
2021-07-31 03:04:20
735
原创 通过屏幕坐标获取最底层窗口句柄
HWND GetChildMost(const POINT& screen_point){ HWND hwnd = WindowFromPoint(screen_point); if (hwnd == NULL) return NULL; HWND parent = ::GetParent(hwnd); if (parent == NULL) return NULL; HWND hWndChild = NULL; ...
2021-07-31 02:03:47
335
转载 微信云函数操作云数据库通用方法
// 云函数入口函数exports.main = async (event, context) => { const targetDB = db.collection(event.db) try { if(event.type == "insert"){ return await targetDB.add({ data: event.data }) ...
2019-01-04 18:46:58
3185
2
原创 小程序云函数分支
小程序云函数处理数据库,相同类型的操作放到一个js文件中安装WX-SERVER-SDK,下载nodejs,在相应文件夹运行命令行npm install --save wx-server-sdk@latest文件getKeyValue.js导出"dbGetKeyValue"函数const cloud = require('wx-server-sdk')cloud.init()co...
2019-01-03 20:54:55
676
原创 Python日期相关
# 计算间隔#自定义时间d1 = datetime.datetime.strptime('2012-03-05 17:41:20', '%Y-%m-%d %H:%M:%S')print(d1)day1 = datetime.datetime(2018,5,16,18,20,2)day2 = datetime.datetime(2018,4,20,20,3,2)prin...
2018-12-22 15:27:54
217
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人