I have a C# winforms application that logs into an online console, that uses reCAPTCHA to ensure that you are not a robot.
In my C# application, you have to solve it every time when you log in. However, when you log in via Firefox, you simply need to check the I'm not a robot checkbox, without solving the reCAPTCHA:
I have set the IE Version in the registry, so other than that, I hove no idea what could govern this behavior. Can someone point me in the right direction?
Code to set IE Version:
private static void SetIE()
{
int BrowserVer, RegVal;
// get the installed IE version
using (WebBrowser Wb = new WebBrowser())
BrowserVer = Wb.Version.Major;
// set the appropriate IE version
if (BrowserVer >= 11)
RegVal = 11001;
else if (BrowserVer == 10)
RegVal = 10001;
else if (BrowserVer == 9)
RegVal = 9999;
else if (BrowserVer == 8)
RegVal = 8888;
else
RegVal = 7000;
// set the actual key
using (RegistryKey Key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", RegistryKeyPermissionCheck.ReadWriteSubTree))
if (Key.GetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe") == null)
Key.SetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe", RegVal, RegistryValueKind.DWord);
}
EDIT1 With IE Version 11.786.15063.0 you also need to solve the reCAPTCHA, as well as Edge.