Page 1 of 2 12 LastLast
Results 1 to 40 of 51

Thread: Getsetting:

  1. #1

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Getsetting:

    Is there a way to get the setting, and save a setting outside of the visual studio folder in regedit or whatever? I have heard it isnt possible, but it must be...

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Getsetting:

    GetSetting and SaveSetting only save to the VB/VBA section of the registry. You can use other registry editing API's to read or write anywhere that you want.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Getsetting:

    Yes, you need API calls to read/write to other registry keys.

    RegOpenKey
    RegQueryKeyValue
    RegCloseKey
    etc.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    sweet!Thankyou so much, ill post if i have problems, i hope they are pretty explanatory

  5. #5

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    nvm, grr stupid allapi.net

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Getsetting:

    A little but here is an example.

    Registry Keys
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Getsetting:

    Yes, using the API you can read and write to the whole registry (well, if you have permission to do so atleast). The code is a bit long since there are several functions involved so I've just attached a class module that I use. I haven't written this myself, I think it's downloaded from VBAccelerator.
    Attached Files Attached Files

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Getsetting:

    No, they're VB6 but your probably looking at the .NET equilivalent

    Win32.RegistryKey.Close
    etc.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    i found it and it works, im gonna go look for the save one, what is its name?

    heres the code so far:

    Option Explicit
    Private Const HKEY_CURRENT_USER = &H80000001
    Private Const HKEY_LOCAL_MACHINE = &H80000002

    Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
    Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
    Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long

    VB Code:
    1. Private Sub Command1_Click()
    2. Dim Result As Long
    3. Dim KeyRet As Long
    4. Dim KeyToRead As String
    5. Dim KeyValue As String
    6. Dim Length As Long
    7. Result = RegOpenKey(HKEY_CURRENT_USER, "Software\Microsoft\Search Assistant\ACMru\5603", KeyRet)
    8. KeyToRead = "000"
    9. Result = RegQueryValueEx(KeyRet, KeyToRead, 0, 0, "", Length)
    10. KeyValue = Space$(Length - 1)
    11. Result = RegQueryValueEx(KeyRet, KeyToRead, 0, 0, ByVal KeyValue, Length)
    12. MsgBox KeyValue
    13. RegCloseKey KeyRet
    14. End Sub

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Getsetting:

    RegSaveKey
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  11. #11
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Getsetting:

    This is a general purpose registry module. It has most of what you need.
    Attached Files Attached Files
    Last edited by dglienna; Jun 6th, 2005 at 01:15 PM.

  12. #12
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Getsetting:

    Quote Originally Posted by RobDog888
    RegSaveKey
    No it's RegCreateKey, RegCreateKeyEx, RegSetValue, RegSetValueEx

  13. #13

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    VB Code:
    1. Option Explicit
    2.  
    3. '-----------------
    4. ' ADVAPI32
    5. ' -----------------
    6. ' function prototypes, constants, and type definitions
    7. ' for Windows 32-bit Registry API
    8.  
    9. Public Const HKEY_CLASSES_ROOT = &H80000000
    10. Public Const HKEY_CURRENT_USER = &H80000001
    11. Public Const HKEY_LOCAL_MACHINE = &H80000002
    12. Public Const HKEY_USERS = &H80000003
    13. Public Const HKEY_PERFORMANCE_DATA = &H80000004
    14.  
    15. ' Registry API prototypes
    16.  
    17. Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hkey As Long) As Long
    18. Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
    19. 'Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias "RegCreateKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal Reserved As Long, ByVal lpClass As String, ByVal dwOptions As Long, ByVal samDesired As Long, lpSecurityAttributes As SECURITY_ATTRIBUTES, phkResult As Long, lpdwDisposition As Long) As Long
    20. Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hkey As Long, ByVal lpSubKey As String) As Long
    21. Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hkey As Long, ByVal lpValueName As String) As Long
    22. Declare Function RegEnumKey Lib "advapi32.dll" Alias "RegEnumKeyA" (ByVal hkey As Long, ByVal dwIndex As Long, ByVal lpName As String, ByVal cbName As Long) As Long
    23. 'Declare Function RegEnumKeyEx Lib "advapi32.dll" Alias "RegEnumKeyExA" (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, lpcbName As Long, ByVal lpReserved As Long, ByVal lpClass As String, lpcbClass As Long, lpftLastWriteTime As FILETIME) As Long
    24. Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" (ByVal hkey As Long, ByVal dwIndex As Long, ByVal lpValueName As String, lpcbValueName As Long, lpReserved As Long, lpType As Long, lpData As Byte, lpcbData As Long) As Long
    25. Declare Function RegFlushKey Lib "advapi32.dll" (ByVal hkey As Long) As Long
    26. 'Declare Function RegGetKeySecurity Lib "advapi32.dll" (ByVal hKey As Long, ByVal SecurityInformation As Long, pSecurityDescriptor As SECURITY_DESCRIPTOR, lpcbSecurityDescriptor As Long) As Long
    27. Declare Function RegLoadKey Lib "advapi32.dll" Alias "RegLoadKeyA" (ByVal hkey As Long, ByVal lpSubKey As String, ByVal lpFile As String) As Long
    28. Declare Function RegNotifyChangeKeyValue Lib "advapi32.dll" (ByVal hkey As Long, ByVal bWatchSubtree As Long, ByVal dwNotifyFilter As Long, ByVal hEvent As Long, ByVal fAsynchronus As Long) As Long
    29. Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
    30. Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hkey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
    31. 'Declare Function RegQueryInfoKey Lib "advapi32.dll" Alias "RegQueryInfoKeyA" (ByVal hKey As Long, ByVal lpClass As String, lpcbClass As Long, lpReserved As Long, lpcSubKeys As Long, lpcbMaxSubKeyLen As Long, lpcbMaxClassLen As Long, lpcValues As Long, lpcbMaxValueNameLen As Long, lpcbMaxValueLen As Long, lpcbSecurityDescriptor As Long, lpftLastWriteTime As FILETIME) As Long
    32. Declare Function RegQueryValue Lib "advapi32.dll" Alias "RegQueryValueA" (ByVal hkey As Long, ByVal lpSubKey As String, ByVal lpValue As String, lpcbValue As Long) As Long
    33. Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hkey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
    34. Declare Function RegReplaceKey Lib "advapi32.dll" Alias "RegReplaceKeyA" (ByVal hkey As Long, ByVal lpSubKey As String, ByVal lpNewFile As String, ByVal lpOldFile As String) As Long
    35. Declare Function RegRestoreKey Lib "advapi32.dll" Alias "RegRestoreKeyA" (ByVal hkey As Long, ByVal lpFile As String, ByVal dwFlags As Long) As Long
    36. 'Declare Function RegSaveKey Lib "advapi32.dll" Alias "RegSaveKeyA" (ByVal hKey As Long, ByVal lpFile As String, lpSecurityAttributes As SECURITY_ATTRIBUTES) As Long
    37. 'Declare Function RegSetKeySecurity Lib "advapi32.dll" (ByVal hKey As Long, ByVal SecurityInformation As Long, pSecurityDescriptor As SECURITY_DESCRIPTOR) As Long
    38. Declare Function RegSetValue Lib "advapi32.dll" Alias "RegSetValueA" (ByVal hkey As Long, ByVal lpSubKey As String, ByVal dwType As Long, ByVal lpData As String, ByVal cbData As Long) As Long
    39. Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hkey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
    40. Declare Function RegUnLoadKey Lib "advapi32.dll" Alias "RegUnLoadKeyA" (ByVal hkey As Long, ByVal lpSubKey As String) As Long
    41.  
    42. Public Const REG_NONE = 0                       ' No value type
    43. Public Const REG_SZ = 1                         ' Unicode nul terminated string
    44. Public Const REG_EXPAND_SZ = 2                  ' Unicode nul terminated string
    45. Public Const REG_BINARY = 3                     ' Free form binary
    46. Public Const REG_DWORD = 4                      ' 32-bit number
    47. Public Const REG_DWORD_LITTLE_ENDIAN = 4        ' 32-bit number (same as REG_DWORD)
    48. Public Const REG_DWORD_BIG_ENDIAN = 5           ' 32-bit number
    49. Public Const REG_LINK = 6                       ' Symbolic Link (unicode)
    50. Public Const REG_MULTI_SZ = 7                   ' Multiple Unicode strings
    51. Public Const REG_RESOURCE_LIST = 8              ' Resource list in the resource map
    52. Public Const REG_FULL_RESOURCE_DESCRIPTOR = 9   ' Resource list in the hardware description
    53. Public Const REG_RESOURCE_REQUIREMENTS_LIST = 10
    54. Public Const REG_CREATED_NEW_KEY = &H1                      ' New Registry Key created
    55. Public Const REG_OPENED_EXISTING_KEY = &H2                      ' Existing Key opened
    56. Public Const REG_WHOLE_HIVE_VOLATILE = &H1                      ' Restore whole hive volatile
    57. Public Const REG_REFRESH_HIVE = &H2                      ' Unwind changes to last flush
    58. Public Const REG_NOTIFY_CHANGE_NAME = &H1                      ' Create or delete (child)
    59. Public Const REG_NOTIFY_CHANGE_ATTRIBUTES = &H2
    60. Public Const REG_NOTIFY_CHANGE_LAST_SET = &H4                      ' Time stamp
    61. Public Const REG_NOTIFY_CHANGE_SECURITY = &H8
    62. Public Const REG_LEGAL_CHANGE_FILTER = (REG_NOTIFY_CHANGE_NAME Or REG_NOTIFY_CHANGE_ATTRIBUTES Or REG_NOTIFY_CHANGE_LAST_SET Or REG_NOTIFY_CHANGE_SECURITY)
    63. 'Public Const REG_LEGAL_OPTION = (REG_OPTION_RESERVED Or REG_OPTION_NON_VOLATILE Or REG_OPTION_VOLATILE Or REG_OPTION_CREATE_LINK Or REG_OPTION_BACKUP_RESTORE)
    64.  
    65. ' Reg Create Type Values...
    66. Public Const REG_OPTION_RESERVED = 0           ' Parameter is reserved
    67. Public Const REG_OPTION_NON_VOLATILE = 0       ' Key is preserved when system is rebooted
    68. Public Const REG_OPTION_VOLATILE = 1           ' Key is not preserved when system is rebooted
    69. Public Const REG_OPTION_CREATE_LINK = 2        ' Created key is a symbolic link
    70. Public Const REG_OPTION_BACKUP_RESTORE = 4     ' open for backup or restore
    71. '''''''''''''''''''''''''''''''''''''''''''''''''''''

  14. #14

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    VB Code:
    1. Public Const STANDARD_RIGHTS_READ = &H20000
    2. Public Const STANDARD_RIGHTS_WRITE = &H20000
    3. Public Const STANDARD_RIGHTS_EXECUTE = &H20000
    4. Public Const STANDARD_RIGHTS_REQUIRED = &HF0000
    5. Public Const STANDARD_RIGHTS_ALL = &H1F0000
    6. Public Const DELETE = &H10000
    7. Public Const READ_CONTROL = &H20000
    8. Public Const WRITE_DAC = &H40000
    9. Public Const WRITE_OWNER = &H80000
    10. Public Const SYNCHRONIZE = &H100000
    11.  
    12. ' Reg Key Security Options
    13. Public Const KEY_QUERY_VALUE = &H1
    14. Public Const KEY_SET_VALUE = &H2
    15. Public Const KEY_CREATE_SUB_KEY = &H4
    16. Public Const KEY_ENUMERATE_SUB_KEYS = &H8
    17. Public Const KEY_NOTIFY = &H10
    18. Public Const KEY_CREATE_LINK = &H20
    19. 'Public Const KEY_READ = ((STANDARD_RIGHTS_READ Or KEY_QUERY_VALUE Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And (Not SYNCHRONIZE))
    20. 'Public Const KEY_WRITE = ((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE))
    21. 'Public Const KEY_EXECUTE = (KEY_READ)
    22. Public Const KEY_ALL_ACCESS = ((STANDARD_RIGHTS_ALL Or KEY_QUERY_VALUE Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY Or KEY_CREATE_LINK) And (Not SYNCHRONIZE))
    23. Public Sub savekey(hkey As Long, strpath As String)
    24. Dim keyhand&
    25. r = RegCreateKey(hkey, strpath, keyhand&)
    26. r = RegCloseKey(keyhand&)
    27. End Sub
    28.  
    29. Function RegQueryStringValue(ByVal hkey As Long, ByVal strValueName As String)
    30.     Dim lResult As Long
    31.     Dim lValueType As Long
    32.     Dim strBuf As String
    33.     Dim lDataBufSize As Long
    34.    
    35.     On Error GoTo 0
    36.     lResult = RegQueryValueEx(hkey, strValueName, 0&, lValueType, ByVal 0&, lDataBufSize)
    37.     If lResult = ERROR_SUCCESS Then
    38.         If lValueType = REG_SZ Then
    39.             strBuf = String(lDataBufSize, " ")
    40.             lResult = RegQueryValueEx(hkey, strValueName, 0&, 0&, ByVal strBuf, lDataBufSize)
    41.             If lResult = ERROR_SUCCESS Then
    42.                 RegQueryStringValue = StripTerminator(strBuf)
    43.             End If
    44.         End If
    45.     End If
    46. End Function
    47.  
    48. Public Function getstring(hkey As Long, strpath As String, strvalue As String)
    49. 'This module allows easy access to the Windows 95 and NT Registry.
    50. 'It takes the following parameters:
    51. '
    52. 'HKEY - one of the following constants:
    53. 'HKEY_CLASSES_ROOT
    54. 'HKEY_CURRENT_USER
    55. 'HKEY_LOCAL_MACHINE
    56. 'HKEY_USERS
    57. 'HKEY_PERFORMANCE_DATA
    58. '
    59. 'strpath - the rest of the registry 'path' eg:
    60. '"Control Panel\desktop"
    61. '
    62. 'strvalue - A string that refers to the key that you want to retrieve eg:
    63. '"Wallpaper"
    64. '
    65. 'The Example above would be called as follows:
    66. '
    67. 'dim strwallpaper as string
    68. 'strwallpaper = getstring(HKEY_CURRENT_USER, "Control Panel\desktop", "Wallpaper")
    69. '
    70. 'This would return the current desktop wallpaper
    71. '
    72. 'This module downloaded from VB-World at [url]http://www.geocities.com/SiliconValley/Bay/8409/[/url]
    73.  
    74.  
    75. Dim keyhand&
    76. Dim datatype&
    77. r = RegOpenKey(hkey, strpath, keyhand&)
    78. getstring = RegQueryStringValue(keyhand&, strvalue)
    79. r = RegCloseKey(keyhand&)
    80. End Function
    81.  
    82. Function StripTerminator(ByVal strString As String) As String
    83.     Dim intZeroPos As Integer
    84.  
    85.     intZeroPos = InStr(strString, Chr$(0))
    86.     If intZeroPos > 0 Then
    87.         StripTerminator = Left$(strString, intZeroPos - 1)
    88.     Else
    89.         StripTerminator = strString
    90.     End If
    91. End Function
    92.  
    93. Public Sub savestring(hkey As Long, strpath As String, strvalue As String, strdata As String)
    94. 'This module allows easy access to the Windows 95 and NT Registry.
    95. 'It takes the following parameters:
    96. '
    97. 'HKEY - one of the following constants:
    98. 'HKEY_CLASSES_ROOT
    99. 'HKEY_CURRENT_USER
    100. 'HKEY_LOCAL_MACHINE
    101. 'HKEY_USERS
    102. 'HKEY_PERFORMANCE_DATA
    103. '
    104. 'strpath - the rest of the registry 'path' eg:
    105. '"Control Panel\desktop"
    106. '
    107. 'strvalue - A string that refers to the key that you want to save eg:
    108. '"Wallpaper"
    109. '
    110. 'strdata - the string you want to save against strvalue eg:
    111. '"c:\windows\clouds.bmp"
    112. '
    113. 'The Example above would be called as follows:
    114. '
    115. 'dim strwallpaper as string
    116. 'call savestring(HKEY_CURRENT_USER, "Control Panel\desktop", "Wallpaper", "C:\Windows\Clouds.bmp")
    117. '
    118. 'If this 'path' does not exist, it will be created.
    119. '
    120. 'This module downloaded from VB-World at [url]http://www.geocities.com/SiliconValley/Bay/8409/[/url]
    121.  
    122.  
    123. Dim keyhand&
    124. r = RegCreateKey(hkey, strpath, keyhand&)
    125. r = RegSetValueEx(keyhand&, strvalue, 0, REG_SZ, ByVal strdata, Len(strdata))
    126. r = RegCloseKey(keyhand&)
    127. End Sub
    just, how do i call it

  15. #15

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    dg that bas did nothing for me...

  16. #16

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    anyone? im lost

  17. #17
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Getsetting:

    You already have the API's declared, so I won't post those, but here are the two routines I use to get and save/update registry keys with examples.
    VB Code:
    1. Public Function GetKeyValue(KeyRoot As Long, KeyName As String, SubKeyRef As String) As String
    2.    
    3.     Dim i As Long                                           ' Loop Counter
    4.     Dim rc As Long                                          ' Return Code
    5.     Dim hKey As Long                                        ' Handle To An Open Registry Key
    6.     Dim sKeyVal As String
    7.     Dim lKeyValType As Long                                 ' Data Type Of A Registry Key
    8.     Dim tmpVal As String                                    ' Tempory Storage For A Registry Key Value
    9.     Dim KeyValSize As Long                                  ' Size Of Registry Key Variable
    10.    
    11.     ' Open RegKey Under KeyRoot {HKEY_LOCAL_MACHINE...}
    12.     '------------------------------------------------------------
    13.     rc = RegOpenKeyEx(KeyRoot, KeyName, 0, KEY_ALL_ACCESS, hKey) ' Open Registry Key
    14.    
    15.     If (rc <> ERROR_SUCCESS) Then GoTo GetKeyError          ' Handle Error...
    16.    
    17.     tmpVal = String$(1024, 0)                             ' Allocate Variable Space
    18.     KeyValSize = 1024                                       ' Mark Variable Size
    19.    
    20.     '------------------------------------------------------------
    21.     ' Retrieve Registry Key Value...
    22.     '------------------------------------------------------------
    23.     rc = RegQueryValueEx(hKey, SubKeyRef, 0, _
    24.                          lKeyValType, tmpVal, KeyValSize)    ' Get/Create Key Value
    25.                        
    26.     If (rc <> ERROR_SUCCESS) Then GoTo GetKeyError          ' Handle Errors
    27.      
    28.     tmpVal = Left$(tmpVal, InStr(tmpVal, Chr(0)) - 1)
    29.  
    30.     '------------------------------------------------------------
    31.     ' Determine Key Value Type For Conversion...
    32.     '------------------------------------------------------------
    33.     Select Case lKeyValType                                  ' Search Data Types...
    34.     Case REG_SZ, REG_EXPAND_SZ                              ' String Registry Key Data Type
    35.         sKeyVal = tmpVal                                     ' Copy String Value
    36.     Case REG_DWORD                                          ' Double Word Registry Key Data Type
    37.         For i = Len(tmpVal) To 1 Step -1                    ' Convert Each Bit
    38.             sKeyVal = sKeyVal + Hex(Asc(Mid(tmpVal, i, 1)))   ' Build Value Char. By Char.
    39.         Next
    40.         sKeyVal = Format$("&h" + sKeyVal)                     ' Convert Double Word To String
    41.     End Select
    42.    
    43.     GetKeyValue = sKeyVal                                   ' Return Value
    44.     rc = RegCloseKey(hKey)                                  ' Close Registry Key
    45.     Exit Function                                           ' Exit
    46.    
    47. GetKeyError:    ' Cleanup After An Error Has Occured...
    48.     GetKeyValue = vbNullString                              ' Set Return Val To Empty String
    49.     rc = RegCloseKey(hKey)                                  ' Close Registry Key
    50. End Function
    51.  
    52. 'Example Usage:  intValue = Val(GetKeyValue(&H80000002, gsKey, "Key Name"))
    53. 'gsKey is a global string containing folder key names...like \SOFTWARE\AppName\AppKey
    54.  
    55. Public Function UpdateKey(KeyRoot As Long, KeyName As String, SubKeyName As String, SubKeyValue As String) As Boolean
    56.     Dim rc As Long                                      ' Return Code
    57.     Dim hKey As Long                                    ' Handle To A Registry Key
    58.     Dim hDepth As Long                                  '
    59.     Dim lpAttr As SECURITY_ATTRIBUTES                   ' Registry Security Type
    60.    
    61.     lpAttr.nLength = 50                                 ' Set Security Attributes To Defaults...
    62.     lpAttr.lpSecurityDescriptor = 0                     ' ...
    63.     lpAttr.bInheritHandle = True                        ' ...
    64.  
    65.     '------------------------------------------------------------
    66.     '- Create/Open Registry Key...
    67.     '------------------------------------------------------------
    68.     rc = RegCreateKeyEx(KeyRoot, KeyName, _
    69.                         0, REG_SZ, _
    70.                         REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, lpAttr, _
    71.                         hKey, hDepth)                   ' Create/Open //KeyRoot//KeyName
    72.    
    73.     If (rc <> ERROR_SUCCESS) Then GoTo CreateKeyError   ' Handle Errors...
    74.    
    75.     '------------------------------------------------------------
    76.     '- Create/Modify Key Value...
    77.     '------------------------------------------------------------
    78.     If (SubKeyValue = "") Then SubKeyValue = " "        ' A Space Is Needed For RegSetValueEx() To Work...
    79.    
    80.     ' Create/Modify Key Value
    81.     rc = RegSetValueEx(hKey, SubKeyName, _
    82.                        0, REG_SZ, _
    83.                        SubKeyValue, LenB(StrConv(SubKeyValue, vbFromUnicode)))
    84.                        
    85.     If (rc <> ERROR_SUCCESS) Then GoTo CreateKeyError   ' Handle Error
    86.     '------------------------------------------------------------
    87.     '- Close Registry Key...
    88.     '------------------------------------------------------------
    89.     rc = RegCloseKey(hKey)                              ' Close Key
    90.    
    91.     UpdateKey = True                                    ' Return Success
    92.     Exit Function                                       ' Exit
    93. CreateKeyError:
    94.     UpdateKey = False                                   ' Set Error Return Code
    95.     rc = RegCloseKey(hKey)                              ' Attempt To Close Key
    96. End Function
    97.  
    98. 'Example Useage:  glReSult = UpdateKey(&H80000002, gsKey, "What I Want To Call The Key", Val(Text1.Text))
    99. 'where Text1.Text contains the value that I want to put in this key
    Does this help?

  18. #18

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    okay, i know this was a while ago. but could you help me here Joacim Andersson?

    your class module looks really nice, but all i would like to know is if you could add a ' next to the functions and give me a brief explanation, or post them here

  19. #19
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Getsetting:

    Sure Remix. However I didn't create that class myself but it's the one I use. I don't know exactly what you want me to comment about it so I will instead show you a quick example on how to use it.
    VB Code:
    1. Private Sub MyRegistrySettings()
    2.     Dim reg As cRegistry
    3.     Set reg = New cRegistry
    4.     'This will create a new value in the Run section
    5.     'so your program will automatically run when Windows starts
    6.     reg.ClassKey = HKEY_CURRENT_USER
    7.     reg.SectionKey = "Software\Microsoft\Windows\CurrentVersion\Run"
    8.     reg.ValueKey = "MyProgram"
    9.     reg.Value = "c:\MyProgram\MyApp.exe"
    10.    
    11.     'This will create a new section to store your own keys in
    12.     reg.ClassKey = HKEY_CURRENT_USER
    13.     reg.SectionKey = "Software\My Company\My App"
    14.     'create the above key
    15.     reg.CreateKey = True
    16.     'Save the Form settings to the registry
    17.     reg.ValueKey = "FormTop"
    18.     reg.Value = Me.Top
    19.     reg.ValueKey = "FormLeft"
    20.     reg.Value = Me.Left
    21.     reg.ValueKey = "FormWidth"
    22.     reg.Value = Me.Width
    23.     reg.ValueKey = "FormHeight"
    24.     reg.Value = Me.Height
    25.     'Even if its stupid to do so here since we just saved
    26.     'these settings this is how you read them back
    27.     reg.ValueKey = "FormTop"
    28.     Me.Top = reg.Value
    29.     reg.ValueKey = "FormLeft"
    30.     Me.Left = reg.Value
    31.     '...and so on
    32. End Sub

  20. #20

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    Great! worked like a charm for creating and getting keys. I really like that class module now!

    okay, just 2 things:
    I had to comment out this line: reg.CreateKey = True
    because it was telling me it had to return something...i dont know why but it did. it worked without it.

    #2:
    what i meant by that above, was this:
    Public Property Get KeyExists() As Boolean
    Public Function DeleteKey() As Boolean
    Public Function DeleteValue() As Boolean...
    and so on..if you could just show me a small example for how to use them..but i think the example you gave me will overwrite everytime, so it will work perfect for exactly what i need!
    thanks so much

  21. #21
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Getsetting:

    Sorry about that reg.CreateKey thingy... That's not a property but rather a function that will return True if it was able to create the key.

    The KeyExists returns True if a particular key exists.
    VB Code:
    1. reg.ClassKey = HKEY_CURRENT_USER
    2. reg.SectionKey = "Software\My Company\My App"
    3. If reg.KeyExists = False Then
    4.     reg.CreateKey
    5. End If
    DeleteKey will obviously delete the key.
    VB Code:
    1. reg.ClassKey = HKEY_CURRENT_USER
    2. reg.SectionKey = "Software\My Company\My App"
    3. If reg.KeyExists = True Then
    4.     reg.DeleteKey
    5. End If
    While DeleteValue would delete a value instead.
    VB Code:
    1. reg.ClassKey = HKEY_CURRENT_USER
    2. reg.SectionKey = "Software\My Company\My App"
    3. reg.ValueKey = "FormTop"
    4. reg.DeleteValue
    This class can also easily be used if you want to associate a file type with your application so that Windows will start your app when the user double click a file in the Windows Explorer.
    VB Code:
    1. Call reg.CreateEXEAssociation("c:\MyPath\XFiles.exe", _
    2.  "XFiles", "The truth is out there", "xxx")
    The above code will associate files named *.xxx with a program named XFiles.exe. It uses the class name XFiles (that a registry section) and has the description "The truth is out there". The description is used as the document type in Windows Explorer when it's in Details view.

  22. #22

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    thanks so much! but as ive been messing with it, the values are returning "Empty" and thus placing the form at 0,0..im not sure why...

  23. #23
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Getsetting:

    That's probably because you marked out the CreateKey call.

  24. #24
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Getsetting:

    I forgot to mention that you can also write the values as any of the different registry value types by first setting the ValueType property before writing to the registry. The default setting is REG_SZ (string).
    VB Code:
    1. reg.ValueType = REG_DWORD

  25. #25

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    Its still returning empty, tell me if/what im doing wrong here:

    VB Code:
    1. Private Sub MyRegistrySettings()
    2.     Dim reg As cRegistry
    3.     Set reg = New cRegistry
    4.     'This will create a new value in the Run section
    5.     'so your program will automatically run when Windows starts
    6.     reg.ClassKey = HKEY_CURRENT_USER
    7.     reg.SectionKey = "Software\Microsoft\Windows\CurrentVersion\Run"
    8.     reg.ValueKey = "MyProgram"
    9.     reg.Value = "c:\MyProgram\MyApp.exe"
    10.         'This will create a new section to store your own keys in
    11.     reg.ClassKey = HKEY_CURRENT_USER
    12.     reg.SectionKey = "Software\My Company\My App"
    13.     reg.CreateKey
    14.     'create the above key
    15.     'Save the Form settings to the registry
    16.     reg.ValueKey = "FormTop"
    17.     reg.Value = Me.Top
    18.     reg.ValueKey = "FormLeft"
    19.     reg.Value = Me.Left
    20.     reg.ValueKey = "FormWidth"
    21.     reg.Value = Me.Width
    22.     reg.ValueKey = "FormHeight"
    23.     reg.Value = Me.Height
    24.     'Even if its stupid to do so here since we just saved
    25.     'these settings this is how you read them back
    26.     reg.ValueKey = "FormTop"
    27.     Me.Top = reg.Value
    28.     reg.ValueKey = "FormLeft"
    29.     Me.Left = reg.Value
    30.     '...and so on
    31. End Sub

  26. #26
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Getsetting:

    Oh, I was wrong... The ValueType must be set, if you would use the REG_SZ it saves the values as string, however for the Form position and size you could just as well save them as REG_DWORD, however the class enforce that the value of the type then must be either an Integer or a Long and the Top, Left, Width, and Height properties are actually stored in a Single so you have to convert them first (if you use REG_DWORD). Sorry about the confusion I haven't used this class for a while.
    VB Code:
    1. 'This will create a new section to store your own keys in
    2. reg.ClassKey = HKEY_CURRENT_USER
    3. reg.SectionKey = "Software\My Company\My App"
    4. 'create the above key
    5. reg.CreateKey
    6. 'Save the Form settings to the registry
    7. reg.ValueType = REG_DWORD
    8. reg.ValueKey = "FormTop"
    9. reg.Value = CLng(Me.Top)
    10. reg.ValueKey = "FormLeft"
    11. reg.Value = CLng(Me.Left)
    12. reg.ValueKey = "FormWidth"
    13. reg.Value = CLng(Me.Width)
    14. reg.ValueKey = "FormHeight"
    15. reg.Value = CLng(Me.Height)

  27. #27
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Getsetting:

    The attached image shows the values saved as both REG_SZ (strings) and as REG_DWORD (Long).
    Attached Images Attached Images  

  28. #28

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    Just for future reference let me post this:

    VB Code:
    1. Private Sub MyRegistrySettings()
    2.     Set reg = New cRegistry
    3.     'This will create a new value in the Run section
    4.     'so your program will automatically run when Windows starts
    5.     reg.ClassKey = HKEY_CURRENT_USER
    6.     reg.SectionKey = "Software\Microsoft\Windows\CurrentVersion\Run"
    7.     reg.ValueKey = "MyProgram"
    8.     reg.Value = "c:\MyProgram\MyApp.exe"
    9.        'This will create a new section to store your own keys in
    10. reg.ClassKey = HKEY_CURRENT_USER
    11. reg.SectionKey = "Software\My Company\My App"
    12. 'create the above key
    13. reg.CreateKey
    14. 'Save the Form settings to the registry
    15. reg.ValueType = REG_DWORD
    16. reg.ValueKey = "FormTop"
    17. reg.Value = CLng(Me.Top)
    18. reg.ValueKey = "FormLeft"
    19. reg.Value = CLng(Me.Left)
    20. reg.ValueKey = "FormWidth"
    21. reg.Value = CLng(Me.Width)
    22. reg.ValueKey = "FormHeight"
    23. reg.Value = CLng(Me.Height)
    24. End Sub
    25.  
    26. Private Sub Command1_Click()
    27. Call MyRegistrySettings
    28. End Sub
    29.  
    30. Private Sub Command12_Click()
    31.     Set reg = New cRegistry
    32.      reg.ClassKey = HKEY_CURRENT_USER
    33.     reg.SectionKey = "Software\Microsoft\Windows\CurrentVersion\Run"
    34.     reg.ValueKey = "MyProgram"
    35.     reg.Value = "c:\MyProgram\MyApp.exe"
    36.        'This will create a new section to store your own keys in
    37. reg.ClassKey = HKEY_CURRENT_USER
    38. reg.SectionKey = "Software\My Company\My App"
    39.     reg.ValueKey = "FormTop"
    40.     Me.Top = reg.Value
    41.     reg.ValueKey = "FormLeft"
    42.     Me.Left = reg.Value
    43. End Sub

    thanks so much for your great work as usual Joacim,btw how do i pronounce that? is it like joeaqueam or is the c soft? like joeakim?

    thanks again

  29. #29
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Getsetting:

    Sorry, remix. I just noticed that I posted the wrong module before.
    I have replaced it with the correct one.

  30. #30

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    thanks dg, yeah the old one was corrupted or something (836 bytes i believe) : D

  31. #31
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Getsetting:

    I use this one in two different apps. It works well, and if you uncomment the setction on errors, helps to debug problems like you were having.

  32. #32

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    Just to let you guys know..i made a simple function for this, to make it ALOT easier to read.

    VB Code:
    1. Private Function CreateKeys(HKey As String, SectionKey As String, ValueKey As String, Valuetype As String, Value As String)
    2. reg.ClassKey = HKey
    3.     reg.SectionKey = SectionKey
    4.     reg.ValueKey = ValueKey
    5.     reg.Value = Value
    6.        'This will create a new section to store your own keys in
    7. reg.ClassKey = HKey
    8. reg.SectionKey = SectionKey
    9. 'create the above key
    10. reg.CreateKey
    11. 'Save the Form settings to the registry
    12. reg.Valuetype = Valuetype
    13. reg.ValueKey = ValueKey
    14. reg.Value = Value
    15. End Function

    call it like:
    VB Code:
    1. Call CreateKeys(HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", Reg_sz, "80.2523.135.315:70")

  33. #33
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Getsetting:

    Mine was a little bit different for writing keys. Also, your function has no return value. Do you mean to have a subroutine? That could cause problems.

    VB Code:
    1. ' This routine allows you to write values into the entire Registry, it currently
    2. ' only handles string and double word values.
    3. Public Sub WriteRegistry(ByVal Group As Long, ByVal Section As String, ByVal Key As String, ByVal ValType As InTypes, ByVal Value As Variant)
    4. Dim lResult As Long
    5. Dim lKeyValue As Long
    6. Dim InLen As Long
    7. Dim lNewVal As Long
    8. Dim sNewVal As String
    9. On Error Resume Next
    10.  RegCreateKeyEx Group, Section, 0, "REG_SZ", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, ByVal 0&, lKeyValue, lResult
    11.  If ValType = ValDWord Then
    12.    lNewVal = CLng(Value)
    13.    InLen = 4
    14.    lResult = RegSetValueExLong(lKeyValue, Key, 0&, ValType, lNewVal, InLen)
    15.  Else
    16.    sNewVal = Value
    17.    InLen = Len(sNewVal)
    18.    lResult = RegSetValueExString(lKeyValue, Key, 0&, 1&, sNewVal, InLen)
    19.  End If
    20.  lResult = RegFlushKey(lKeyValue)
    21.  lResult = RegCloseKey(lKeyValue)
    22. End Sub

  34. #34
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Getsetting:

    Quote Originally Posted by |2eM!x
    thanks so much for your great work as usual Joacim,btw how do i pronounce that? is it like joeaqueam or is the c soft? like joeakim?
    The C in my name is pronounce as a K. Actually spelling it as Joakim is pretty common, so is Joachim. In Spain and Portugal I've seen this spelling: Joaquim.
    Last edited by Joacim Andersson; Jun 6th, 2005 at 02:17 PM.

  35. #35

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    okay i figure ill post this here.

    im working on a way to change your proxy without going thru the hassle. Ive got the code right, its changing the correct values in the registry. But IE is not recognizing the change ..im wondering is there a text file or something IE is comparing the registry keys with?

    VB Code:
    1. Private Sub Command1_Click()
    2.  Set reg = New cRegistry
    3.     'This will create a new value in the Run section
    4.     'so your program will automatically run when Windows starts
    5.     Call CreateKeys(HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", Reg_sz, "65.215.15.95:80")
    6.    Call CreateKeys(HKEY_USERS, "S-1-5-21-1715567821-413027322-725345543-1004\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", Reg_sz, "65.215.15.95:80")
    7. End Sub
    8.  
    9. Private Function CreateKeys(HKey As String, SectionKey As String, ValueKey As String, Valuetype As String, Value As String)
    10. reg.ClassKey = HKey
    11.     reg.SectionKey = SectionKey
    12.     reg.ValueKey = ValueKey
    13.     reg.Value = Value
    14.        'This will create a new section to store your own keys in
    15. reg.ClassKey = HKey
    16. reg.SectionKey = SectionKey
    17. 'create the above key
    18. reg.CreateKey
    19. 'Save the Form settings to the registry
    20. reg.Valuetype = Valuetype
    21. reg.ValueKey = ValueKey
    22. reg.Value = Value
    23. End Function

    this allows you to change the proxy in IE, thats where i know its stored..but unfortunately IE doesnt recognize my change..any ideas?

  36. #36
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Getsetting:

    Did you re-start IE?

  37. #37

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    yes, but it should still be able to use it while running

  38. #38
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Getsetting:

    Then what is this?
    'This will create a new value in the Run section
    'so your program will automatically run when Windows starts

  39. #39
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: Getsetting:

    1. Is ProxyEnable set to enable (1) ?
    2. I think you have to put in the proxy server as such

    "http=65.215.15.95:80"

    *EDIT* And https= if you want that as well. Or ftp= gopher= ...
    CodeBank: Launch IE

  40. #40

    Thread Starter
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getsetting:

    i dont know, thats the comments that i was given above...its modifying them as it runs, ive been checking..

    also, the format IE puts it in, in the registry is the same way ive been putting it, so i dont think there is a http=

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width