VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Hi.

    I'm a cat

    please patient thanks

    Code:
    if "%necessariaMask%"=="1" echo suggest masking antialiasing ON
    if "%necessariaMask%"=="0" echo suggest masking antialiasing OFF
    
    
    echo.
    echo Press M for maskinkg ON
    echo.
    echo Press N for masking OFF
    echo.
    
    
    CHOICE /t 1 /d 3 /N /C:MN345 /M "press (M) or (N)"
    
    
     if not errorlevel==3 if errorlevel==2 set "necessariaMask=0" & timeout /t 2
     if not errorlevel==2 if errorlevel==1 set "necessariaMask=1" & timeout /t 2
     if not errorlevel==1 if errorlevel==0 echo The choice was interrupted (0)
    
    
    if "%necessariaMask%"=="1" echo masking now ON
    if "%necessariaMask%"=="0" echo masking now OFF
    But this is not working alwais ok, sometimes there seems to be an unusually longer wait.

    Is there an alternative?
    Quote Quote  
  2. Code:
    CHOICE  /N /C MN /M "press M or N"
    if errorlevel==1 (
        set "necessariaMask=1"
        echo masking now ON
    ) else if errorlevel==1 (
        set "necessariaMask=0"
        echo masking now OFF
    )
    without timeout, so you fill it in if needed
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!