Google chrome 在Windows上以全屏模式运行chrome
我想配置我的计算机以启动Google Chrome Windows启动。它应该以全屏模式启动并打开一些网页 我尝试使用以下命令行运行Chrome:Google chrome 在Windows上以全屏模式运行chrome,google-chrome,google-chrome-app,Google Chrome,Google Chrome App,我想配置我的计算机以启动Google Chrome Windows启动。它应该以全屏模式启动并打开一些网页 我尝试使用以下命令行运行Chrome: chrome.exe --start-fullscreen --app=https://google.com 但是,Chrome以窗口模式打开,而不是全屏模式 有没有办法在全屏模式下运行chrome? 右键单击Google Chrome图标并选择属性 复制目标的值,例如:“C:\Users\zero\AppData\Local\Google\Chr
chrome.exe --start-fullscreen --app=https://google.com
但是,Chrome以窗口模式打开,而不是全屏模式
有没有办法在全屏模式下运行chrome?- 右键单击Google Chrome图标并选择属性
- 复制目标的值,例如:
“C:\Users\zero\AppData\Local\Google\Chrome\Application\Chrome.exe”
- 在桌面上创建快捷方式
- 将值粘贴到项目的位置,并附加
:--kiosk
- 按应用,然后按确定
- 要在Windows启动时启动Chrome,请复制此快捷方式并将其粘贴到启动文件夹(开始->程序->启动)
@echo off
echo Countdown to application launch...
timeout /t 10
"C:\Program Files (x86)\chrome-win32\chrome.exe" --chrome --kiosk http://localhost/xxxx --incognito --disable-pinch --no-user-gesture-required --overscroll-history-navigation=0
exit
可能需要设置chrome://flags/#autoplay-如果运行较旧版本的chrome(60以下),则为策略
2016年5月11日更新
自从我发布这篇文章以来,chrome已经有了很多更新,并且不得不对脚本进行大量修改,以使其能够按照我的需要工作
更新版本的chrome有几个问题:
- 内置缩比放大功能
- 强制关机后总是显示Chrome还原错误
- 自动更新弹出窗口
过时的 我用这个来锁定屏幕。我想这就是你想要的
- 启动chrome并转到www.google.com,将url拖放到桌面上
- 将其重命名为本例中方便的名称google\u主页
- 现在把它放到你的c目录中,点击我的电脑c:并把这个文件放到那里
- 再次启动chrome进入设置,然后在启动时的下选择打开特定页面并在此处设置主页
@echo off
echo Step 1 of 5: Waiting a few seconds before starting the Kiosk...
"C:\windows\system32\ping" -n 31 -w 1000 127.0.0.1 >NUL
echo Step 2 of 5: Starting browser as a pre-start to delete error messages...
"C:\google_homepage.url"
echo Step 3 of 5: Waiting a few seconds before killing the browser task...
"C:\windows\system32\ping" -n 11 -w 1000 127.0.0.1 >NUL
echo Step 4 of 5: Killing the browser task gracefully to avoid session restore...
Taskkill /IM chrome.exe
echo Step 5 of 5: Waiting a few seconds before restarting the browser...
"C:\windows\system32\ping" -n 11 -w 1000 127.0.0.1 >NUL
echo Final 'invisible' step: Starting the browser, Finally...
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --kiosk --overscroll-history-navigation=0"
exit
注意:ping的-n后面的数字是启动链接(或下一行中的应用程序)之前等待的秒数(减去1秒)
最后,如果一切正常,那么您可以将.bat文件拖放到windows中的启动文件夹中,并且每次windows启动时都会启动此脚本
更新:
在最新版本的chrome浏览器中,他们真正开始启用触摸手势,这意味着在触摸屏上向左或向右滑动将导致浏览器在历史上向前或向后移动。为了防止出现这种情况,我们需要禁用后退和前进按钮上的历史导航,以便在脚本末尾添加以下
--overscroll history navigation=0
。我想与大家分享一下我在全屏模式下自动启动chrome的方法,特别是youtube tv,无需按F11键。kiosk/全屏选项似乎不起作用(版本41.0.2272.89)。但它有一些步骤
- 启动chrome并导航至页面(www.youtube.com/tv)
- 将地址从地址栏(锁定图标)拖到桌面。它将创建一个快捷方式
- 从chrome中打开应用程序(带有多个彩色圆点的图标)
- 从桌面将快捷方式拖动到应用程序空间
- 右键单击应用程序中的新图标并选择“打开全屏”
- 再次右键单击应用程序中的图标,然后选择“创建快捷方式…”
- 例如,选择桌面和创建。将在桌面上创建新的快捷方式
chrome.exe--start fullscreen--app=https://google.com
will n
@echo off
echo Step 1 of 2: Waiting a few seconds before starting the Kiosk...
"C:\windows\system32\ping" -n 5 -w 1000 127.0.0.1 >NUL
echo Step 2 of 5: Waiting a few more seconds before starting the browser...
"C:\windows\system32\ping" -n 5 -w 1000 127.0.0.1 >NUL
echo Final 'invisible' step: Starting the browser, Finally...
"C:\Program Files (x86)\Google\Chromium\chrome.exe" --chrome --kiosk http://127.0.0.1/xxxx --incognito --disable-pinch --overscroll-history-navigation=0
exit
@echo off
echo Step 1 of 5: Waiting a few seconds before starting the Kiosk...
"C:\windows\system32\ping" -n 31 -w 1000 127.0.0.1 >NUL
echo Step 2 of 5: Starting browser as a pre-start to delete error messages...
"C:\google_homepage.url"
echo Step 3 of 5: Waiting a few seconds before killing the browser task...
"C:\windows\system32\ping" -n 11 -w 1000 127.0.0.1 >NUL
echo Step 4 of 5: Killing the browser task gracefully to avoid session restore...
Taskkill /IM chrome.exe
echo Step 5 of 5: Waiting a few seconds before restarting the browser...
"C:\windows\system32\ping" -n 11 -w 1000 127.0.0.1 >NUL
echo Final 'invisible' step: Starting the browser, Finally...
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --kiosk --overscroll-history-navigation=0"
exit
"your chrome path" -kiosk -fullscreen "your URL"
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -kiosk -fullscreen http://google.com