Hi Guys, I'm having a nightmare trying to set the User Agent in an embedded browser. I have seen examples is several posts that include: a SetUserAgent fuctionUDF NetSession-0.9d.au3Editing a REG KEYI have included my code. I tried using the _SetUserAgent function in UDF Net Session first. No joy. So I commented this out and tried the function (which I renamed SetUserAgent2. I have got urlmon.dll, but it was read,or execute, so I changed this to write, modify, read, execute for system, admin & user. Still no joy. Finally, using the code that tries to write to the REG KEY, just returns "Something went wrong while trying to set the useragent." All suggestions would be grateful received. Many thanks, Tim