Jump to content

I need help regarding RegWrite !!


Go to solution Solved by debkol35,

Recommended Posts

Hi...I was trying to mute flash player sound so, when I couldnt I find an alternate way to mute sound.

here is my code:-

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Play_Background_Sounds", "REG_SZ", "no")
#include <IE.au3>
Local $oIE = _IECreate("www.mywebsite.us")
sleep(10000)
_IEQuit($oIE)
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Play_Background_Sounds", "REG_SZ", "yes")

so, basically, first regedit is disabling IE sound. But it only works with HTML5 player not Flash player.

So, I find a regedit key which can disable Flash in IE.  (After disabling Flash in IE, videos are playing in HTML5 player which is already muted, and my object is fulfilled.)

i.e.:-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}]
"Compatibility Flags"=dword:00000400

I want to put it in 2nd line of my code but I cant figure out how I set this regkey using RegWrite function.

Can anyone please help me?

---

oK..I did it

RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}")
Regwrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}", "Compatibility Flags", "REG_DWORD", "1024")
Edited by debkol35
Link to comment
Share on other sites

  • Solution

just posted if someone in future look for it :)

to disable flash in IE

RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}")
Regwrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}", "Compatibility Flags", "REG_DWORD", "1024")

and to enable flash

RegDelete("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}")
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...