|
생성된다는 게...? 그냥 알쇼처럼 이미지를 띄우면 되는 건가요?
Gui를 두 개 만든다고 가정하겠습니다.
GuiControlGet으로 변수를 취득해 와서 그거 하고 똑같은 이름으로 저장된 파일을 실행하면 될 것 같습니다.
Gui, Add, DDL, vFlower_1, 목련 ; 목련 컨트롤에 변수를 지정합니다.
Button버튼:
GuiControlGet, Image, , Flower_1
Gui, 2:Add, Picture, , %A_WorkingDir%\%Image%.bmp
Gui, 2:Show
Return
2번 구이를 미리 만들어놓고 버튼을 누를 때 GuiControl로 Image만 바꿔도 될 것 같습니다.
Gui, 2:Add, Picture
Gui, Add, DDL, vFlower_1, 목련 ; 목련 컨트롤에 변수를 지정합니다.
Button버튼:
GuiControlGet, Image, , Flower_1
Gui, 2:Defualt
GuiControl, , Flower_1, %A_WorkingDir%\%Image%.bmp
Gui, 2:Show
Return
이런 식으로 해도 되고 다양한 방법이 있겠네요.
http://www.autohotkey.pe.kr/command.php?id=GuiControl
http://www.autohotkey.pe.kr/command.php?id=GuiControlGet
http://www.autohotkey.pe.kr/GuiControls.htm#Picture
|