我不知道如何使用按钮打开网站

I don't know how to go about a button to open a website

我有几个问题,我正在制作一个 personal/public 工具来快速查找和打开外部工具网站,在代码中(我将在下面提供)我想要按钮网站上的文字,每个网站的链接和名称都在 GUI Stuffs 底部的代码中。

我只是不知道如何处理按钮和文本的事情,我也不知道如何在 chrome 外部打开网站我知道如何在批处理文件中进行,但不知道在 AHK

; This is an ED tools Program built to allow you to open tools with a click of a button

Gui, Show, w310 h300, Elite Dangerous Tools

; GUI Stuffs
Gui, Add, Button, w50 19 x150 y10 Beddb













;Tools

;eddb.io
eddb:


return

;-----------

;www.edsm.net
edsm:


return

;-----------

;inara.cz
inara:

return

;-----------

;coriolis.io
coriolis:

return

;-----------

;edtools.ddns.net
edtools:

return

;-----------

;edshipyard.net/
edship:

return

;-----------

GuiClose: 
ExitApp

我想要一个带有按钮的图形用户界面,总共有 6 个按钮。每边 3 个文字,上面写着网站的名称,随便什么。但是当我 运行 现在,我得到

Error: Invalid Option
Specifically Beddb 

Line#
006 Gui,Add,Button,w50 h19 x150 y10 Bebbd

正如 Yane 在评论中提到的,您的 sub-routine(标签)名称前需要一个 g。 (更多信息 here。)下面是一个按钮和站点代码的工作示例。它在 Firefox 中打开站点。您可以将此应用到您的其余按钮和网站。

f1::
Gui , Add , Button , w50 19 x150 y10 geddb , eddb.io
Gui , Show , w310 h300 , Elite Dangerous Tools
Return

eddb:
Run , firefox.exe "eddb.io"
Return

帮助文档很好地解释了您可以使用 GUI 执行的所有操作。
https://www.autohotkey.com/docs/commands/Gui.htm