SaveCount:
GuiControlGet, NumAdventure, 1:
GuiControlGet, NumGetHero, 1:
GuiControlGet, NumGetHeroPerAdventure, 1:
GuiControlGet, NumStrSuccess, 1:
IniWrite, %NumAdventure%, %CountFile%, Count, NumAdventure
IniWrite, %NumGetHero%, %CountFile%, Count, NumGetHero
IniWrite, %NumGetHeroPerAdventure%, %CountFile%, Count, NumGetHeroPerAdventure
Return
LoadCount:
IniRead, IniNumAdventure, %CountFile%, Count, NumAdventure
IniRead, IniNumGetHero, %CountFile%, Count, NumGetHero
IniRead, IniNumGetHeroPerAdventure, %CountFile%, Count, NumGetHeroPerAdventure
GuiControl,, NumAdventure, %IniNumAdventure%
GuiControl,, NumGetHero, %IniNumGetHero%
GuiControl,, NumGetHeroPerAdventure, %IniNumGetHeroPerAdventure%
Return
여기에다가
GuiControlGet, NumGetHero, 1:
GuiControlGet, NumAdventure, 1:
SetFormat,Float,0.2
NumGetHeroPerAdventure := (NumGetHero // NumAdventure)*100
GuiControl,, NumGetHeroPerAdventure, %NumGetHeroPerAdventure%
단순히 numgethero라는 변수를 numadventure라는 변수로 나눠주고 100을 곱해주는 것 뿐인데
그냥 본문에서 := 변수//변수*100 하면 바로 되는데
ini 들어가니까 안되네요.......... 왠지 간단할 것 같은데 ㅠㅠ