Gui 剪贴板不工作

Gui clipboard not working

#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.
#SingleInstance force
; empty window sample

Gui, Show , w260 h100, Temmie Clipper
Gui, Add, Button, gINTRO ,Hoi
Gui, Add, Button, gBount ,Bount
Gui, Add, Button, gDog ,Dogresidu
return
INTRO:
{
clipboard = hOI!!! i'm temmie

}
Bount:
{
clipboard = giv temmie dogresidu... NOW!!!!

}

Dog:
{

clipboard = us tems are normally BOUNTS!




}

这些是标签,不是函数,因此它们不会 return 自动。因此,如果按下任何按钮,执行总是进行到最后一条指令 clipboard = us tems are normally BOUNTS!

将语法更改为:

INTRO:
    clipboard = hOI!!! i'm temmie
return

并对标签执行相同操作:BountDog