F1:: ;마법1번
Gui, Destroy ; 이전 GUI가 있으면 제거
Gui, Font, S70 CFF0000, Bold
Gui, Add, Text, vTimerText, 180
Gui, Show, x1670 y150 h140 w250 NA, 마법1번 ;x1670 y3
Timer := 180
SetTimer, UpdateTimer, 1000 ; 1초마다 UpdateTimer 호출
return
UpdateTimer:
Timer--
GuiControl,, TimerText, %Timer%
if (Timer <= 0)
{
SetTimer, UpdateTimer, Off ; 타이머 종료
}
return
F2:: ;마법2번
Gui, Destroy ; 이전 GUI가 있으면 제거
Gui, Font, S70 CFF0000, Bold
Gui, Add, Text, vTimerText, 60
Gui, Show, x1670 y3 h140 w250 NA, 마법2번 ;x1670 y3
Timer := 60
SetTimer, UpdateTimer, 1000 ; 1초마다 UpdateTimer 호출
return
UpdateTimer:
Timer--
GuiControl,, TimerText, %Timer%
if (Timer <= 0)
{
SetTimer, UpdateTimer, Off ; 타이머 종료
}
return
60초와 180초 2개 gui를 동시에 현출되게 할수있는 방법이 있을까요? 도와주세요!
gui1,gui2를 나누어서 해봤는데
UpdateTimer:
Timer--
GuiControl,, TimerText, %Timer%
요부분이 반복적용된다고 에러가 뜨더라고요 ㅠㅠ
위 부분 지우면 2개 gui가 현출이되긴하는데 하나는 카운터가 안되요..
고수님들 도와주세요 !!!
물론 해보셧겠지만....
https://chatgpt.com/share/67a04229-006c-800c-b3f1-3abb533868c4
gpt맹신자로썬..... 한번 테스트 해보세요.
(ChatGPT o3-mini-high)