Autohotkey AHK-更改GUI图片
我有一个带有自动热键的GUI窗口,但我不知道如何更改图片。我研究了GuiControl,但文档确实很缺乏(尤其是示例)。到目前为止,我的代码是:Autohotkey AHK-更改GUI图片,autohotkey,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 您需要为控件设置一个关联变
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
您需要为控件设置一个关联变量
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