@echo off
title Gesture Control for PowerPoint - Unblock Camera
echo This will close PowerPoint and WebView2, then clear the Office add-in cache.
echo Save your work first!
pause
taskkill /F /IM POWERPNT.EXE >nul 2>&1
taskkill /F /IM msedgewebview2.exe >nul 2>&1
timeout /t 2 /nobreak >nul

set "WEF=%LOCALAPPDATA%\Microsoft\Office\16.0\Wef"
if exist "%WEF%" (
    rmdir /S /Q "%WEF%"
    echo Done. Reopen PowerPoint, open the add-in and choose Allow when asked for camera access.
) else (
    echo Cache folder not found. Nothing to clear.
)
pause