首页 > 解决方案 > 批次和铬问题,无法设置窗口位置

问题描述

基本上我想打开 16 个铬窗口并在 1080p 显示器中自动对齐它们,但由于某种原因铬忽略了该位置。

@ECHO off
setlocal ENABLEDELAYEDEXPANSION
set /a width=1920/4
set /a heigth=1080/4
for /l %%n in (0, 1, 3) do (
    for /l %%g in (0, 1, 3) do (
        set /a x = %%n * %width%
        echo x = !x!
        set /a y = %%g * %heigth%
        echo y = !y!
        START %appdata%\..\Local\Chromium\Application\chrome.exe --window-position=!x!,!y! --app=https://google.com --window-size=%width%,%heigth% 
        pause
    )
)

标签: batch-filechromium

解决方案


推荐阅读