Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome 在Windows上以全屏模式运行chrome_Google Chrome_Google Chrome App - Fatal编程技术网

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

我想配置我的计算机以启动Google Chrome Windows启动。它应该以全屏模式启动并打开一些网页

我尝试使用以下命令行运行Chrome:

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,请复制此快捷方式并将其粘贴到启动文件夹(开始->程序->启动)

19年10月3日更新

显示10秒倒计时的新脚本,然后在全屏信息亭模式下启动chrome/chromiumn

chrome的更多更新需要脚本更新,以允许自动播放带有音频的视频。注意--overscroll history navigation=0当前不工作,需要转到禁用此标志chrome://flags/#overscroll-浏览器中的历史导航,并将其设置为禁用

@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中的自动升级是一种尝试和禁用的痛苦,我改用chrome,因为它不自动更新,而且仍然提供chrome的所有现代功能。注意:请确保下载chromium的顶级版本,因为chromium的基本版本不支持所有编解码器,因此所有音频和视频编解码器都附带该版本


过时的

我用这个来锁定屏幕。我想这就是你想要的

  • 启动chrome并转到www.google.com,将url拖放到桌面上
  • 将其重命名为本例中方便的名称google\u主页
  • 现在把它放到你的c目录中,点击我的电脑c:并把这个文件放到那里
  • 再次启动chrome进入设置,然后在启动时的下选择打开特定页面并在此处设置主页
下一部分是我用来在kiosk模式下启动关闭和重新启动chrome的脚本。这些位置是我安装chrome的地方,因此根据您的安装情况,可能会有所不同

打开您选择的文本编辑器或仅打开记事本,然后输入以下代码,确保其格式/顺序与以下相同。根据需要将其保存到桌面,因此在本例中,chrome\u startup\u script.txt下一步右键单击它并重命名,从末尾删除txt,然后放入bat。双击此按钮可启动脚本,查看其工作是否正常

应该出现一个命令行框并在脚本中运行,chrome将启动然后关闭执行此操作的原因是删除任何错误报告,例如如果电脑崩溃,当chrome再次启动时,如果没有此命令行框,它将在顶部显示黄色错误条,表示chrome未正确关闭,是否要恢复。几秒钟后,chrome将再次启动并进入kiosk模式,并将指向您设置的主页

@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就会在你定义的页面全屏启动。我想你可以把这个快捷方式放在启动文件夹中,在windows启动时运行,但我还没有尝试过。

运行
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