Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.077 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.01; 'python.': 0.02; 'can?t': 0.09; 'subject:Help': 0.11; 'called.': 0.16; 'evening,': 0.16; 'skip:w 70': 0.16; 'value.': 0.19; 'import': 0.22; 'error': 0.23; 'code': 0.31; 'run': 0.32; 'says': 0.33; "can't": 0.35; 'received:google.com': 0.35; 'url:rec-html40': 0.35; 'charset:us- ascii': 0.36; 'url:org': 0.36; 'url:microsoft': 0.37; 'url:office': 0.38; 'to:addr:python-list': 0.38; 'url:schemas': 0.38; 'url:omml': 0.39; 'url:2004': 0.39; 'url:12': 0.39; 'to:addr:python.org': 0.39; 'john': 0.61; 'complete': 0.62; 'skip:r 30': 0.69; 'skip:w 60': 0.84; 'subject:Value': 0.84; 'hands': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :thread-index:content-language; bh=3ksrBIfY5l3bWIQ+YIh5fsJtXzrylMXfLG0ccML1vhg=; b=hHz69PJvOsMm2d8teHBxW8WaUnWU/XCuUKE64fjQHPUV1LU4KlhW+1qzORlu7H6ieO GMmHlxyuQrD2fdpamRFQRCTJEljDdj/x/OhRrEUa1Pejv3DcWoIa0Z2fiaV5nDNNfbMO Y4q/PIbu7tkIRZzP11C4YAVqWjHTpqw8nvISzZ7OhJtyP28SLuJtvPqwiANOBSCl446U zwFZEUf0BzKvbbWYjD8pQglq/nK0aFCj+qOkNj8DpMIZbGufGhXTnWwbdKqI72wpshs5 2houWHfrF3MFACZO7Xwk1oqzkXjBbs/Tp13RhbM3I/60wj/Uxry3MP+VIc8LYpSkYazF uH+A== X-Received: by 10.236.230.3 with SMTP id i3mr23631814yhq.13.1388707944772; Thu, 02 Jan 2014 16:12:24 -0800 (PST) From: "J. McGaha" To: Subject: Registry Key Value Help Date: Thu, 2 Jan 2014 18:12:24 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EB_01CF07E6.30E091D0" X-Mailer: Microsoft Office Outlook 12.0 thread-index: Ac8IDwp06SSedSahTAGXpYs7sDrRJwACGpGA Content-Language: en-us X-Mailman-Approved-At: Fri, 03 Jan 2014 03:59:26 +0100 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 138 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388717968 news.xs4all.nl 2886 [2001:888:2000:d::a6]:59258 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63019 This is a multi-part message in MIME format. ------=_NextPart_000_00EB_01CF07E6.30E091D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Good evening, I am a complete noob at Python. I am attempting to create a key and update its value. The code below is what I have come up with after reading everything I can get my hands on. When I run the this code I get an error that says the 'int' can't be called. I appreciate your help import _winreg as wr aReg = wr.ConnectRegistry(None, wr.HKEY_LOCAL_MACHINE) targ = r'SOFTWARE\Policies\Google\Update' aKey = wr.OpenKey(aReg, targ, 0, wr.KEY_WRITE) wr.KEY_SET_VALUE(aKey,"DisableAutoUpdateChecksCheckboxValue", 1, wr.REG_DWORD) wr.CloseKey(aKey) wr.CloseKey(aReg) I appreciate your help John ------=_NextPart_000_00EB_01CF07E6.30E091D0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Good evening, I am a complete noob at Python.  I am attempting = to create a key and update its value.  The code below is what I = have come up with after reading everything I can get my hands on.  =

 

When I run the this code I get an error that says the = ‘int’ can’t be called.

 

I appreciate your help

 

 

 

import _winreg = as wr
aReg =3D wr.ConnectRegistry(None, = wr.HKEY_LOCAL_MACHINE)
targ =3D = r'SOFTWARE\Policies\Google\Update'
aKey =3D wr.OpenKey(aReg, targ, 0, = wr.KEY_WRITE)
wr.KEY_SET_VALUE(aKey,"DisableAutoUpdateChecksCheck= boxValue",  1, = wr.REG_DWORD)
wr.CloseKey(aKey)
wr.CloseKey(aReg)
  =

 

I appreciate your help

 

 

John

------=_NextPart_000_00EB_01CF07E6.30E091D0--