Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: Syntax check

  1. #1
    Join Date
    Feb 2006
    Posts
    346

    Syntax check

    Hello,

    I have an input box that I want to get to input data into then get that data and write to registry. I can get other data to work from RichText but not from input. What did I do wrong? Thanks

    This does not work
    Code:
    pserver = Input.GetText("Input2");                                                                                                                                                 
    Registry.SetValue(HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", "ProxyServer", pserver, REG_SZ);

    This works!
    Code:
    proxyoveride= RichText.GetText("RichText1", false);
    
    
    Registry.SetValue(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\", "ProxyOverride", proxyoveride, REG_SZ);
    Registry.SetValue(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\", "ProxyEnable", "1", REG_DWORD);
    
    
    Dialog.Message("Notice", "Your Local Bypass is set to: "..proxyoveride..".");

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    "works for me"

    You're not writing the same value, so you're not comparing apples and apples.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Feb 2006
    Posts
    346
    Not sure why it's not working for me. The value does not change! I will keep poking around - Thanks

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    what value are you looking at?
    do you have rights to the registry?
    Use Application.SetLastError(0); and then Application.GetLastError() to see if you're getting an error.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Posting Permissions

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