windows开机自启动应用
背景
客户有一款竖行屏,要定向展示某个内容,具体内容是打开谷歌浏览器访问某个链接,并隐藏地址栏全屏展示
分析
开启自启动可以通过windows系统自带的功能,但要实现隐藏地址栏并全屏显示则需借助第三方工具AHK
Step1: 下载ahk
Step2: 编写ahk脚本
创建hjb.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Run, "C:\Program Files\Google\Chrome\Application\chrome.exe" http://117.173.165.135:60080/#/brewing_process?organization_id=1702188317321555&header_device_id=1720583071272198&footer_device_id=1706751284514993 --start-maximized --kiosk
WinWaitActive, ahk_exe chrome.exe
Send, {F11}
return
注意,在windows电脑上找到浏览器地址,例如我的google浏览器的运行地址是C:\Program Files\Google\Chrome\Application\chrome.exe, 然后空格写上要访问的地址

在安装了AHK软件的情况下,双击hjb.ahk文件,即可全屏打开访问的地址并隐藏地址栏
Step3: 将hjb.ahk文件放入开机自启动项中
Win+R打开cmd:输入shell:startup 打开开机自启动文件夹

将hjb.ahk文件复制到该文件夹中即可
