While(1) lock = RegRead("HKLM", "System\State\", "Lock") If (lock = 2) RegWriteDword ("HKLM", "System\State\", "Lock", "0") EndIf # ¹®ÀÚ Ä«¿îÆ® unreadSMSCount = RegRead("HKLM", "System\State\Messages\Unread", "SMS") unreadMMSCount = RegRead("HKLM", "System\State\Messages\Unread", "MMS") unreadMessageCount = unreadSMSCount + unreadMMSCount oldMessageCount = RegRead("HKLM", "Software\Microsoft\CHome\CKTFMMS\Page1", "oldMessageCount") If (oldMessageCount <> unreadMessageCount) RegWriteString ("HKLM", "Software\Microsoft\CHome\CKTFMMS\Page1\","TEXT1" , "»õ ¸Þ½ÃÁö "&unreadMessageCount&"°³") If (unreadMessageCount > 0 ) RegWriteString ("HKLM", "Software\Microsoft\CHome\CKTFMMS\CondensedPage\","PluginLabel", "»õ ¸Þ½ÃÁö "&unreadMessageCount&"°³") Else RegWriteString ("HKLM", "Software\Microsoft\CHome\CKTFMMS\CondensedPage\","PluginLabel", "¹®ÀÚ ¸Þ½ÃÁö") RegWriteString ("HKLM", "Software\Microsoft\CHome\CKTFMMS\Page1\","TEXT1", "»õ ¸Þ½ÃÁö ¾øÀ½") EndIf RegWriteDword ("HKLM", "Software\Microsoft\CHome\CKTFMMS\Page1\","oldMessageCount",unreadMessageCount) RegWriteDword("HKLM","Software\Microsoft\CHome\CKTFMMS","Updated","0") Sleep(100) RegWriteDword("HKLM","Software\Microsoft\CHome\CKTFMMS","Updated","1") Run("\Program Files\Chome Editor\ChomeRefresh.exe") EndIf Sleep(5000) EndWhile