batch-file - 批次和铬问题,无法设置窗口位置
问题描述
基本上我想打开 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
)
)
解决方案
推荐阅读
- amazon-ec2 - 通过网络连接到 Fauxton
- discord.js - 如何获取公会的语音通道数?
- jdbc - 将数据从 KNIME 上传到 Bigquery / GCS
- hive - 使用 Presto + Hive 删除分区的最佳方法
- javascript - 强制 OpenWindow 使用不带 http 的绝对路径
- symfony-4.3 - 连接到 symfony 4.3 项目中的 oracle 11g 数据库
- java - 用于 xml 解组的 JAXB 或 Jackson?
- ios - 如何增加滑动运动的阻力 - 迅速
- c# - 如何在 splat ReactiveUI 中设置日志记录?
- mysql - 我们可以在旧版本的 mysql 中使用 WITH 语句的替代方法是什么?