aero桌面导致的,可以试着关闭aero桌面
; 以下为检测os,如果是win7则临时关闭aero桌面 ==================================================
func check_win7()
if _dwmisenabled() = true then dllcall("dwmapi.dll", "uint", "dwmenablecomposition", "int", 'false')
endfunc
func _dwmisenabled()
if fileexists(@systemdir & "\dwmapi.dll") then
$receiver = dllstructcreate("int")
$atemp = dllcall("dwmapi.dll", "uint", "dwmiscompositionenabled", "ptr", dllstructgetptr($receiver, 1))
$receiver2 = dllstructcreate("int", $atemp[1])
if dllstructgetdata($receiver2, 1) = true then
return 1
else
return seterror(1, 0, 0)
endif
else
return seterror(2, 0, 0)
endif
endfunc |