- ::代码说明
- ::之前代码勿把蓝色球算在红色球个数里了,一直没有发现。现在修改
- ::
- ::
- ::
- ::
- ::
- ::
- color 2f
- title 沈寂 买彩票中奖查询程序,今天是%date%
- cls
- @echo off
- echo.连接网络获取中...
-
- setlocal enabledelayedexpansion
- set t=0
- set hqgs=0
- set y=0
- set x=0
- set z=0
- set jz=0
- set h1=07 16 28 31 32 33 6
- set h2=08 12 13 14 16 18 5
- set h3=06 11 16 27 30 32 8
- set h4=02 08 11 15 23 25 13
- set h5=02 04 08 16 24 31 5
- for /f %%i in ('"cscript //nologo cp.vbs"') do (set r!t!=%%i &set /a t=!t!+1)
- cls
- echo.********************************第!r1!开奖信息****************************
- echo.!r0!
- echo.
- echo.本期开奖号是:!r2! !r3! !r4! !r5! !r6! !r7!蓝球:!r8!
- set kaijiang=!r2!!r3!!r4!!r5!!r6!!r7!
- echo.################################################################################
- echo.总共购买5注,以下为购买彩票信息
- :main
- for /l %%i in (1,1,5) do (
- set goumai=!h%%i!
- call :hqgs ::计算红色球中奖
- call :lqs ::计算蓝色球中奖
- if "!y!"=="1" (if "!x!" GTR "0" set /a x=!x!-1)
- call ::zzzj
- set /a qbjz=!qbjz!+!jz!
- echo.--------------------------------------------------------------------------------
- echo.第%%i注号是:!goumai! 红色球个数是:!x!,蓝色球:!y!,等级是:!z!,金额是:!jz!
- set hqgs=0
- set y=0
- set x=0
- set z=0
- set jz=0
- )
- echo.--------------------------------------------------------------------------------
- set /p tt=$$$$$$$$$$$$$$$$$$$$$$$统计,本次开奖攻击中奖金额是:!qbjz!元$$$$$$$$$$$$$$$$$$$$$$$$$<nul
- if "!qbjz!" neq "0" call :zjts
- pause>nul
- exit
- :hqgs
- for %%i in (!kaijiang!) do (
- for %%j in (!goumai!) do (
- if "%%i"=="%%j" set /a x=!x!+1))
- goto :eof
- :lqs
- for /f "tokens=7* delims= " %%i in ("!goumai!") do set lanqiu=%%i
- if %lanqiu%==%r8% set y=1
- goto :eof
- :zjts
- echo.Set WshSHell = WScript.CreateObject("WScript.Shell") >tem.vbs
- echo.WshSHell.popup "你有中奖%qbjz%元哦,请注意兑换。该提示在5秒后自动关闭",5,"提示" >>tem.vbs
-
- tem.vbs
- del tem.vbs
- goto :eof
- :zzzj
- if "%x%" lss "3" (if "%y%"=="1" set z=6 &&set jz=5)
- if "%x%"=="3" (if "%y%"=="1" set z=5 &&set jz=10)
- if "%x%"=="4" (if "%y%"=="0" set z=5 &&set jz=10)
- if "%x%"=="4" (if "%y%"=="1" set z=4 &&set jz=200)
- if "%x%"=="5" (if "%y%"=="0" set z=4 &&set jz=200)
- if "%x%"=="5" (if "%y%"=="1" set z=3 &&set jz=3000)
- if "%x%"=="6" (if "%y%"=="0" set z=2 &&set jz=当前奖金的30%)
- if "%x%"=="6" (if "%y%"=="1" set z=1 &&set jz=中大奖了)
- goto :eof
复制代码
[ 本帖最后由 ipqfhvk 于 2011-1-31 11:59 编辑 ] |