本帖最后由 zdeity 于 2021-9-8 16:13 编辑
文件位置:我的空间\bat原创区\ZDBatBossMouse_Setup
直接下载:ZD_BatBossMouse
该exe会提取出ZD_BatBossMouse的文件夹,然后运行ZD_BatBossMouseGUI就可以了
主要功能:关闭/打开防火墙,隐藏窗口,关机
触发方式:鼠标移至左上角
源码如下:
GUI.bat复制代码 main.bat- @echo off
- set att=0
- :home
- set /p fc=<settings\Firewall.txt
- set /p sc=<settings\Shutdown.txt
- set /p swc=<settings\ScanWait.txt
- set /p lc=<settings\LowCover.txt
- set /p exitcode=<settings\Exit.txt
- set /p lcpro=<settings\LowCoverSet.txt
- if %lc% EQU Y sleep_s %lcpro%
- if %exitcode% EQU 1 exit
- if %lcpool% EQU 1 goto lowc
- EMOS /mouse
- set mousetime=1
- for /f %%i in (errorleveldat.dat) do (
- if %mousetime% EQU 1 (
- set x=%%i
- )
- if %mousetime% EQU 2 (
- set y=%%i
- )
- set /a mousetime+=1
- )
- if %x% GTR 10 goto home
- if %y% GTR 10 goto home
- if %att% EQU 0 set att=1
- if %att% EQU 1 set att=0
- if %sc% EQU Y shutdown /p
- if %fc% EQU Y (
- if %att% EQU 1 (
- net start sharedaccess
- ) else net stop sharedaccess
- )
- if %att% EQU 1 (
- for /f %%i in (settings\WindowHide.txt) do cmdow "%%i" /hid
- ) else for /f %%i in (settings\WindowHide.txt) do cmdow "%%i" /vim
- )
- sleep_s %swc%
- goto home
复制代码 第三方:cico,cmdow,code,emos |