【问题标题】:AHK - Change GUI PictureAHK - 更改 GUI 图片
【发布时间】:2012-11-24 18:28:47
【问题描述】:

我有一个带有 AutoHotkey 的 GUI 窗口,但我不知道如何更改图片。我查看了 GuiControl 但文档确实缺乏(尤其是示例)。到目前为止我的代码:

Gui,Add,Picture,w300 h-1,first.png
Gui,Add,Button,x60 w80 h30, Start
Gui,Show
Return

GuiClose:
ExitApp
Return

ButtonStart:
;How can I change the picture?
return

【问题讨论】:

    标签: autohotkey


    【解决方案1】:

    您需要为控件设置关联变量。

    Gui,Add,Picture,w300 h-1 vMyPicture, first.png
    Gui,Add,Button,x60 w80 h30, Start
    Gui,Show
    Return
    
    GuiClose:
    ExitApp
    Return
    
    ButtonStart:
        GuiControl,, MyPicture, second.png
    return
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-05-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-09
      相关资源
      最近更新 更多