Python調用DLL - 微信截圖

檔案:PrScrn.dll

DLL可以由安裝微信或下方直接下載獲得

微信路經
C:\Program Files (x86)\Tencent\WeChat

Python調用DLL - 微信截圖_第1张图片

Python環境

python 2.x

代碼

#!/usr/bin/python
# -*- coding: utf-8 -*-
import ctypes

dll = ctypes.cdll.LoadLibrary('PrScrn.dll')
dll.PrScrn(0)

執行:

Python調用DLL - 微信截圖_第2张图片

你可能感兴趣的:(Python調用DLL - 微信截圖)