SetRegView [v1.1.08+]

RegRead, RegWrite, RegDelete ±×¸®°í ·¹Áö½ºÆ®¸® ȸµ¹ÀÌ¿¡ »ç¿ëµÇ´Â ·¹Áö½ºÆ®¸® ºä¸¦ ¼³Á¤ÇÕ´Ï´Ù.

SetRegView, RegView

¸Å°³º¯¼ö

RegView

·¹Áö½ºÆ®¸®¸¦ 32-ºñÆ® ¾îÇø®ÄÉÀ̼Çó·³ º¸·Á¸é 32¸¦ ÁöÁ¤ÇÏ°í, 64-ºñÆ® ¾îÇø®ÄÉÀ̼Çó·³ º¸·Á¸é 64¸¦ ÁöÁ¤ÇϽʽÿÀ.

Á¤»ó ÇàÀ§·Î º¹±¸ÇÏ·Á¸é ´Ü¾î Default¸¦ ÁöÁ¤ÇϽʽÿÀ.

ÃÑÆò

ÀÌ ¸í·É¾î´Â Windows 64-ºñÆ®¿¡¸¸ À¯¿ëÇÕ´Ï´Ù. Windows 32-ºñÆ®¿¡¼­´Â È¿°ú°¡ ¾ø½À´Ï´Ù.

64-ºñÆ® ½Ã½ºÅÛ¿¡¼­, 32-ºñÆ® ¾îÇø®ÄÉÀ̼ÇÀº WOW64¶ó°í ºÎ¸£´Â Windows ¼­ºê½Ã½ºÅÛ À§¿¡¼­ ½ÇÇàµË´Ï´Ù. ±âº»À¸·Î, ½Ã½ºÅÛÀº Ãæµ¹À» ÇÇÇϱâ À§ÇØ ¾î¶² ·¹Áö½ºÆ®¸® Å°´Â ¹æÇâÀüȯÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, 32-ºñÆ® ½ºÅ©¸³Æ®¿¡¼­HKLM\SOFTWARE\AutoHotkey´Â HKLM\SOFTWARE\Wow6432Node\AutoHotkeyÀ¸·Î ¹æÇâÀüȯµË´Ï´Ù. SetRegView¸¦ »ç¿ëÇϸé 32-ºñÆ® ½ºÅ©Å©¸³Æ®ÀÇ ·¹Áö½ºÆ®¸® ¸í·É¾î°¡ 64-ºñÆ® ·¹Áö½ºÆ®¸® ºä·Î ¹æÇâÀüȯµÈ Å°¿¡ ±×¸®°í ±× ¹Ý´ë·Î Á¢±ÙÇÒ ¼ö ÀÖ½À´Ï´Ù.

³»Àå º¯¼ö A_RegView¿¡ ÇöÀç ¼³Á¤ÀÌ ´ã±é´Ï´Ù. »õ·Î ±âµ¿µÈ ¾²·¹µå´Â (ÇÖÅ°, ¸ÂÃã ¸Þ´º Ç׸ñ, ¶Ç´Â ŸÀÌ¸Ó ¼­ºê·çƾ) ÀÌ ¸í·É¾î¿¡ ´ëÇÑ ±âº» ¼³Á¤À» °¡Áö°í »õ·Ó°Ô ½ÃÀÛÇÕ´Ï´Ù. ±âº»°ªÀº ÀÌ ¸í·É¾î¸¦ ÀÚµ¿-½ÇÇà ¼½¼Ç (½ºÅ©¸³Æ® »ó´Ü)¿¡¼­ »ç¿ëÇÏ¸é ¹Ù²Ü ¼ö ÀÖ½À´Ï´Ù.

°ü·Ã Ç׸ñ

RegRead, RegWrite, RegDelete, Loop (·¹Áö½ºÆ®¸®)

¿¹Á¦

¿¹Á¦ 1Àº ƯÁ¤ÇÑ ·¹Áö½ºÆ®¸® ºä¸¦ ¼³Á¤ÇÏ´Â ¹ý°ú ·¹Áö½ºÆ®¸® ¹æÇâÀüȯÀ¸·Î ½ºÅ©¸³Æ®¿¡ ¿µÇâÀ» ÁÖ´Â ¹ýÀ» º¸¿©ÁÝ´Ï´Ù.

; ·¹Áö½ºÆ®¸® Å°¿¡ 32-ºñÆ® ¾îÇø®ÄÉÀ̼Çó·³ Á¢±ÙÇÕ´Ï´Ù.
SetRegView 32
RegWrite REG_SZ, HKLM, SOFTWARE\Test.ahk, Value, 123

; ·¹Áö½ºÆ®¸® Å°¿¡ 64-ºñÆ® ¾îÇø®ÄÉÀ̼Çó·³ Á¢±ÙÇÕ´Ï´Ù.
SetRegView 64
RegRead value, HKLM, SOFTWARE\Wow6432Node\Test.ahk, Value
RegDelete HKLM, SOFTWARE\Wow6432Node\Test.ahk

MsgBox Read value '%value%' via Wow6432Node.

; ·¹Áö½ºÆ®¸® ºä¸¦ ±âº»°ªÀ¸·Î º¹±¸ÇÕ´Ï´Ù. 
; ±âº»°ªÀº ½ºÅ©¸³Æ®°¡ 32-ºñÆ®Àΰ¡ 64-ºñÆ®Àΰ¡¿¡ µû¶ó ´Ù¸¨´Ï´Ù.
SetRegView Default
;...

¿¹Á¦ 2Àº ½ºÅ©¸³Æ®°¡ ½ÇÇàÁßÀÎ ¿î¿µ üÁ¦¿Í EXE¿Í ÀÇ À¯ÇüÀ» ŽÁöÇÏ´Â ¹ýÀ» º¸¿©ÁÝ´Ï´Ù.

if (A_PtrSize = 8)
    script_is := "64-bit"
else ; if (A_PtrSize = 4)
    script_is := "32-bit"

if (A_Is64bitOS)
    OS_is := "64-ºñÆ®ÀÔÀÌ´Ù"
else
    OS_is := "32-ºñÆ®ÀÔ´Ï´Ù. ¿ÀÁ÷ ´ÜÀÏ ·¹Áö½ºÆ®¸® ºä¸¸ ÀÖ½À´Ï´Ù"

MsgBox ÀÌ ½ºÅ©¸³Æ®´Â %script_is%ÀÌ°í, OS´Â %OS_is%ÀÔ´Ï´Ù.