I am trying to write a script to un-check the DNS box "Register
Connection's Addresses in DNS" on a windows XP Professional workstation.
It is changing the wring box. Does anyone have the code to accomplish
this task?

Thanks in advance.

Ray

Re: Script to configure DNS by Fosco

Fosco
Thu Apr 06 22:47:20 CDT 2006

"Ray"
> I am trying to write a script to un-check the DNS box "Register
> Connection's Addresses in DNS" on a windows XP Professional workstation.
> It is changing the wring box. Does anyone have the code to accomplish
> this task?

I have not XP here .. is "check" a checkbox ? ... :

http://www.hiddensoft.com/autoit3/

ControlCommand
--------------------------------------------------------------------------------
Sends a command to a control.
ControlCommand ( "title", "text", controlID, "command" [, "option"] )
Command, Option Return Value
"IsChecked", "" Returns 1 if Button is checked, 0 otherwise
"Check", "" Checks radio or check Button
"UnCheck", "" Unchecks radio or check Button


; generic sample in a form named Aform1 with 1 checkbox named Button1

AutoItSetOption("WinTitleMatchMode", 4)
WinActivate("AForm1")
WinWaitActive( "AForm1", "", 5 )
WinActivate("AForm1")
$a = ControlCommand ( "AForm1", "ACheckbox1", "Button1", "IsChecked", "")
MsgBox(262144, "", $a)
Sleep(2000)
ControlCommand ( "AForm1", "ACheckbox1", "Button1", "Check", "")
$a = ControlCommand ( "AForm1", "ACheckbox1", "Button1", "IsChecked", "")
MsgBox(262144, "", $a)
Sleep(2000)
ControlCommand ( "AForm1", "ACheckbox1", "Button1", "UnCheck", "")
$a = ControlCommand ( "AForm1", "ACheckbox1", "Button1", "IsChecked", "")
MsgBox(262144, "", $a)



; optional code for Aform1 for testing

#include <GUIConstants.au3>
; == GUI generated with Koda ==);
$Form1 = GUICreate("AForm1", 527, 324, 194, 127)
$Checkbox1 = GUICtrlCreateCheckbox("ACheckbox1", 184, 64, 97, 17)
GUISetState(@SW_SHOW)
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case Else
;;;;;;;
EndSelect
WEnd

--
Fosco








Re: Script to configure DNS by Ray

Ray
Fri Apr 07 14:26:35 CDT 2006

Fosco wrote:
> "Ray"
>> I am trying to write a script to un-check the DNS box "Register
>> Connection's Addresses in DNS" on a windows XP Professional workstation.
>> It is changing the wring box. Does anyone have the code to accomplish
>> this task?
>
> I have not XP here .. is "check" a checkbox ? ... :
>
> http://www.hiddensoft.com/autoit3/
>
> ControlCommand
> --------------------------------------------------------------------------------
> Sends a command to a control.
> ControlCommand ( "title", "text", controlID, "command" [, "option"] )
> Command, Option Return Value
> "IsChecked", "" Returns 1 if Button is checked, 0 otherwise
> "Check", "" Checks radio or check Button
> "UnCheck", "" Unchecks radio or check Button
>
>
> ; generic sample in a form named Aform1 with 1 checkbox named Button1
>
> AutoItSetOption("WinTitleMatchMode", 4)
> WinActivate("AForm1")
> WinWaitActive( "AForm1", "", 5 )
> WinActivate("AForm1")
> $a = ControlCommand ( "AForm1", "ACheckbox1", "Button1", "IsChecked", "")
> MsgBox(262144, "", $a)
> Sleep(2000)
> ControlCommand ( "AForm1", "ACheckbox1", "Button1", "Check", "")
> $a = ControlCommand ( "AForm1", "ACheckbox1", "Button1", "IsChecked", "")
> MsgBox(262144, "", $a)
> Sleep(2000)
> ControlCommand ( "AForm1", "ACheckbox1", "Button1", "UnCheck", "")
> $a = ControlCommand ( "AForm1", "ACheckbox1", "Button1", "IsChecked", "")
> MsgBox(262144, "", $a)
>
>
>
> ; optional code for Aform1 for testing
>
> #include <GUIConstants.au3>
> ; == GUI generated with Koda ==);
> $Form1 = GUICreate("AForm1", 527, 324, 194, 127)
> $Checkbox1 = GUICtrlCreateCheckbox("ACheckbox1", 184, 64, 97, 17)
> GUISetState(@SW_SHOW)
> While 1
> $msg = GuiGetMsg()
> Select
> Case $msg = $GUI_EVENT_CLOSE
> ExitLoop
> Case Else
> ;;;;;;;
> EndSelect
> WEnd
>
> --
> Fosco
>
>
>
>
>
>
>
Thanks I will try it

Ray

Re: Script to configure DNS by Ray

Ray
Fri Apr 07 14:30:27 CDT 2006

Ray wrote:
> I am trying to write a script to un-check the DNS box "Register
> Connection's Addresses in DNS" on a windows XP Professional workstation.
> It is changing the wring box. Does anyone have the code to accomplish
> this task?
>
> Thanks in advance.
>
> Ray
As an alternative to the script does anyone have any ideas how I can
find the registry key. Regmon points me to an empty folder in the registry.

Re: Script to configure DNS by Fosco

Fosco
Fri Apr 07 22:29:37 CDT 2006

"Ray"
> As an alternative to the script does anyone have any ideas how I can
> find the registry key. Regmon points me to an empty folder in the registry.

RegShot 1.61e
http://www.pcworld.com/downloads/file_description/0,fid,19540,00.asp
http://www.snapfiles.com/get/regshot.html

RegShot >>> make the1 snapshot make the dns changes take 2 snap
and compare


www.regedit.com
http://www.winguides.com/
Registry hacks
http://www.mdgx.com/reg.htm
http://www.winguides.com/downloads/registry.exe (tips 1 mega)
--
Fosco