ecXjIm1X.rar
(5.76 KB, 下载次数: 31)
启动幕保的自定义函数 Const SPI_GETSCREENSAVETIMEOUT = 14 Const SPI_SETSCREENSAVETIMEOUT = 15 Const SPI_GETSCREENSAVEACTIVE = 16 Const SPI_SETSCREENSAVEACTIVE = 17 Const SPIF_SENDWININICHANGE = &H2 Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" _ (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal _ fuWinIni As Long) As Long Function 屏保(时间 As Long) SystemParametersInfo SPI_SETSCREENSAVETIMEOUT, 时间, 0&, SPIF_SENDWININICHANGE End Function 使用方法: 只要任何单元格输入 =屏保(1)即可启动屏保,其中1表示时间 |