您在GUI选项卡参数中使用了百分比表达式(%),因此,您需要将选项封装在引号中或删除表达式(百分比)。
#SingleInstance, Force
GuiWidth := "w630" ;setting gui width as variable
GuiHeight := "h500" ;setting gui height as variable
;Tabs
Gui, Color, Black
Gui, Font, cWhite
Gui, Add, Tab3, % "x0 y0 w500 h499", 1|2|3
; Gui, Add, Tab3, x0 y0 w500 h499, 1|2|3 ; or just remove the %
Gui, Tab, 1
Gui, Color, Black
Gui, Font, cWhite s12
Gui, Add, Text, ,Useful Tools
;SWID and Customer Portal Launcher
Gui, Add, Text, , SWID
Gui, Font, cBlack s10
Gui, Add, Edit, vSWID1 gSubmit_swid x+10 w100 hp, SW
Gui, Add, Button, x+5 hp gPortal,Launch Portal
Gui Show, % GuiWidth GuiHeight, Shortcuts