EmptySpace Posted June 20, 2012 Share Posted June 20, 2012 (edited) I was trying these user agents but i always get errors so im asking for some help/advice. $oIE = _IECreateEmbedded () $GUIActiveX = GUICtrlCreateObj($oIE, 160, 0, 467, 601) $oIE.SetRequestHeader("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1)") _IENavigate($oIE, "http://whatsmyuseragent.com/") Hmmm it shows to this website but it wont trick other websites. Whats wrong? How to make it more powerfull? Edit: Everything is ok. It works. Only website dont supports ie lol Edited June 20, 2012 by Edgaras Link to comment Share on other sites More sharing options...
EmptySpace Posted June 21, 2012 Author Share Posted June 21, 2012 (edited) Ok, now I want to change ie to opera mini. I changed settings in regedit for opera. Before changing setting my user agent was mozzila (even i used ie embeded in gui) now when i changed settings i get thisMozilla/4.0 (compatible; Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.20464/28.1857; U; lt) Presto/2.8.119 Version/11.10; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; Media Center PC 4.0; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) I need to show only that string.Opera Mini/4.2.20464/28.1857; U; lt) Presto/2.8.119 Version/11.10I managed to change it to Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.20464/28.1857; Presto/2.8.119 Version/11.10; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; Media Center PC 4.0; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) But cant get rid of that Mozzila things. And why they are there when im using ie? Edited June 21, 2012 by Edgaras Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now