Par exemple le code suivant :
Code : Tout sélectionner
$val = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","IgxTray")
MsgBox(4096, $val)
Quelqu'un aurais t il une idée ou une piste ?
Merci d'avance.

Code : Tout sélectionner
$val = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","IgxTray")
MsgBox(4096, $val)

Code : Tout sélectionner
$val = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","IgxTray")
MsgBox(4096, @error)

Code : Tout sélectionner
$val = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","SunJavaUpdateSched")
MsgBox(4096, "", $val)

Bigre... fallait y penserjchd a écrit :igxtray ou igfxtray ?


Code : Tout sélectionner
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation]
"Manufacturer"="ACME Corp"
"Model"="K2000 - GTI"
"SupportURL"="http://www.chezmoi.com"
"Logo"="C:\Windows\system32\oemlogo.bmp"
Code : Tout sélectionner
#RequireAdmin
#include <WindowsConstants.au3>
Local $var1 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "Manufacturer")
MsgBox(4096, "Manufacturer:", $var1 & " - " & @EXTENDED )
Local $var2 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation", "Model")
MsgBox(4096, "Model:", $var2 & " - " & @EXTENDED )

When running on 64-bit Windows if you want to read a value specific to the 64-bit environment you have to suffix the HK... with 64 i.e. HKLM64

Bingo !!!sylvanie a écrit :puisqu'on est en 64bits, vous avez essayé de lire avec le suffixe 64; tel que décrit dans la remarque :When running on 64-bit Windows if you want to read a value specific to the 64-bit environment you have to suffix the HK... with 64 i.e. HKLM64