Natao arisiva ity resaka mitohy ity.
Mametraha fanontaniana azafady raha mila fanampiana.
Solved
Natao arisiva
Read Windows Registry In Firefox Extensions
Hi guys,
I want to read values in this key " HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings "
I tried to use this code :
const {Cc, Ci} = require("chrome"); var wrk = Cc["@mozilla.org/windows-registry-key;1"].createInstance(Ci.nsIWindowsRegKey); wrk.open(wrk.ROOT_KEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", wrk.ACCESS_READ); var ProxyEnable = wrk.readStringValue("ProxyEnable"); var IP = wrk.readStringValue("IP"); var Port = wrk.readStringValue("Port"); wrk.close();
But it doesn't work.
Hi guys,
I want to read values in this key " HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings "
I tried to use this code :
const {Cc, Ci} = require("chrome");
var wrk = Cc["@mozilla.org/windows-registry-key;1"].createInstance(Ci.nsIWindowsRegKey);
wrk.open(wrk.ROOT_KEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", wrk.ACCESS_READ);
var ProxyEnable = wrk.readStringValue("ProxyEnable");
var IP = wrk.readStringValue("IP");
var Port = wrk.readStringValue("Port");
wrk.close();
But it doesn't work.
All Replies (2)
Vahaolana Nofidina
Best would be to ask advice at the Add-ons forum.
Thanks man.