Re: Writing to Registry
"valery_vi" <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
What is about @error:
Failure: Returns 0 if error writing registry key or value.
@error can be set to following values :
1 if unable to open requested key
2 if unable to open requested main key
3 if unable to remote connect to the registry
-1 if unable to open requested value
-2 if value type not supported
if RegWrite
("HKEY_CURRENT_USER\SOFTWARE\Test\Software\Microsoft\Windows
NT\CurrentVersion\Windows Messaging
Subsystem\Profiles\Outlook\13dbb0c8aa05101a9bb000aa002fc45a", "000366
01", "REG_BINARY", "84010000") = 0 then
$ret = @error
MsgBox(0,'','$ret = ' & $ret)
endif
--- In [email protected], "thundley99" <thundley99@...>
wrote:
>
> Yes I tried a script like this with the RegWrite only in the
script..
> it didn't work. I don't know if I need something else in it?
>
>
>
>
>
> --- In [email protected], "valery_vi" <shehrer1@> wrote:
> >
> > Read and try RegWrite:
> >
> > ;(not tested)
> > RegWrite
("HKEY_CURRENT_USER\SOFTWARE\Test\Software\Microsoft\Windows
> > NT\CurrentVersion\Windows Messaging
> >
Subsystem\Profiles\Outlook\13dbb0c8aa05101a9bb000aa002fc45a", "000366
01
> > ", "REG_BINARY", "84010000")
> >
> >
> > --- In [email protected], "thundley99" <thundley99@>
wrote:
> > >
> > > Hi all,
> > >
> > > I am trying to modify a reg key to simply turn Cached
Exchange mode
> > > on in MS Outlook. I have found the correct key that needs to
be the
> > > following:
> > >
> > > [HKEY_CURRENT_USER\Software\Microsoft\Windows
> > > NT\CurrentVersion\Windows Messaging
> > > Subsystem\Profiles\Outlook\13dbb0c8aa05101a9bb000aa002fc45a]
> > > "00036601"=hex:84,01,00,00
> > >
> > > This key will turn cached mode on in Outlook.
> > >
> > > I just need a simple script to do this.. Any help would be
great.
> > > Thank you
> > >
> >
>