按键精灵的系统插件(Sys)
一、得到/设置屏幕分辨率和色深1234567screenX = Plugin.sys.GetScRX()screenY = Plugin.sys.GetScRY()Dep=plugin.sys.GetScDep()TracePrint screenX
一、得到/设置屏幕分辨率和色深
1 2 3 4 5 6 7 | screenX = Plugin.sys.GetScRX()screenY = Plugin.sys.GetScRY()Dep=plugin.sys.GetScDep()TracePrint screenXTracePrint screenYTracePrint DepCall Plugin.sys.SetSc(1024,768,16) |
二、获取系统运行时间
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | KeyPress "F2", 1time1 = Plugin.sys.GetTime()Do time2 = Plugin.sys.GetTime() If time2 - time1 >= 10000 Then TracePrint "冷却时间到" KeyPress "F2", 1 time1 = Plugin.sys.GetTime() Else TracePrint "冷却时间未到" KeyPress "F3", 1 Delay 1000 End Ifloop |
三、获取系统运行时间
1 2 3 | 银币 = 10000当前系统时间 = Plugin.sys.GetDateTime()Call plugin.file.WriteFileEx("C:\记录.txt",当前系统时间&" 银币="&银币) |
四、设置/得到剪贴板内容
1 2 3 4 | 账号 = "487786133"Call plugin.sys.SetCLB(账号)Clipboard = Plugin.sys.GetCLB()TracePrint Clipboard |
五、获取操作系统类型
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 系统类型 = Plugin.sys.GetOSType()Select Case 系统类型Case 0 MessageBox "您的操作系统版本是:Windows 95/98"Case 1 MessageBox "您的操作系统版本是:windows ME/windows NT/windows 2000/windows XP"Case 2 MessageBox "您的操作系统版本是:windows 2003"Case 3 MessageBox "您的操作系统版本是:windows 2008"Case 4 MessageBox "您的操作系统版本是:Windows vista"Case 5 MessageBox "您的操作系统版本是:win7"Case 6 MessageBox "您的操作系统版本是:windows CE"Case Else MessageBox "无法识别当前系统"End Select |
六、自动关机
1 2 3 4 5 6 7 8 9 | While true s = Plugin.sys.GetDateTime() TracePrint "您的操作系统日期和时间:" & s If s="2018-02-24 22:17:00" then Call Plugin.sys.ExitOS(0) Else Delay 200 End ifWend |


