按键精灵重新定义Print Screen按键

实现功能:每次按下Print Screen按键,保存屏幕截图到D:\PrintScreen\X.bmp,X=1,2,3,...n


#按键精灵实现PrintScreen



IniFilePath = "D:\PrintScreen\精灵记录.ini"
Z = Plugin.File.IsFileExit(IniFilePath)
If Z=false
    Plugin.File.WriteINI "累计数","number","1",IniFilePath
EndIf 
S = Plugin.File.ReadINI("累计数", "number", IniFilePath)
M="D:\PrintScreen\"&S&".bmp"
Plugin.Pic.PrintScreen 0, 0, 1024, 768, M
S=S+1
Plugin.File.WriteINI "累计数","number",S,IniFilePath
EndScript
展开阅读全文

没有更多推荐了,返回首页