OnTopReplica
我也有你同样的需求,用的是ontopreplica
如意大大大也可以,不太方便,我待会找一下代码,需要用到Gdip_All.ahk,网上很容易找到
#NoEnv
SetBatchLines -1
CoordMode Mouse, Screen
IniRead, zoom, see-screen-like-boss.ini, setting, zoom
IniRead, xz, see-screen-like-boss.ini, setting, x
IniRead, yz, see-screen-like-boss.ini, setting, y
IniRead, hz, see-screen-like-boss.ini, setting, h
IniRead, wz, see-screen-like-boss.ini, setting, w
IniRead, sleeptime, see-screen-like-boss.ini, setting, settime
IniRead, Vthekey, see-screen-like-boss.ini, setting, thekey
w:=wz * zoom, h:=hz * zoom
#Include, Gdip_All.ahk
Hotkey, %Vthekey% , mainfun,
return
mainfun:
Gui, Destroy
Gui +AlwaysOnTop +Resize +ToolWindow +HwndMagnifierID -Caption
Gui Show, w%w% h%h% NA, Magnifier
source_hdc := GetDC(PrintSourceID) ; 源DC
dest_hdc := GetDC(MagnifierID) ; 目标DC
SetTimer Repaint, 50 ; 不停重绘当前画面
sleep,% sleeptime
gosub guiclose
Repaint:
StretchBlt(dest_hdc, 0, 0, w, h, source_hdc, xz, yz, wz, hz)
; StretchBlt(目标DC, 目标x, 目标y, 目标w, 目标h, 源DC, 源x, 源y, 源w, 源h, 模式)
Return
GuiClose:
DeleteDC(dest_hdc) ; 释放资源
DeleteDC(source_hdc)
Gui, Destroy
return