karanmoonlight Posted March 7, 2014 Share Posted March 7, 2014 Hi people I have prepared two same programs but only one of them is working fine even the codes and commands are all same this program of opening the google is working fine #include <IE.au3> Sleep(500) Local $oIE = _IECreate("https://www.google.co.in/?gfe_rd=ctrl&ei=ab8ZU4PrKKrW8gf5lYDgDg&gws_rd=cr") Sleep(100) _IELoadWait($oIE) Sleep(100) $hIE = _IEPropertyGet($oIE, "hwnd") ; Get Handle of the IE window WinSetState("Google - Windows Internet Explorer","",@SW_MAXIMIZE) Sleep(100) 2nd program which is not working even though the codes are same for both the programs but the 2nd one is not maximizing the IE page. Can anyone please help me??????????? #include <IE.au3> Sleep(500) Local $oIE = _IECreate("https://ericoll.internal.ericsson.com/sites/MUNA_RF_Engineering_Services/RF%20Engineering%20Design%20Services/Documents/Forms/AllItems.aspx?RootFolder=%2Fsites%2FMUNA%5FRF%5FEngineering%5FServices%2FRF%20Engineering%20Design%20Services%2FDocuments%2FATT%20RF%20Design%2FCentral%20Region") Sleep(100) _IELoadWait($oIE) Sleep(100) $hIE = _IEPropertyGet($oIE, "hwnd") ; Get Handle of the IE window WinSetState("Central Region - All Documents - Windows Internet Explorer","",@SW_MAXIMIZE) Sleep(100) Link to comment Share on other sites More sharing options...
mlukac89 Posted March 7, 2014 Share Posted March 7, 2014 #include <IE.au3> Sleep(500) $url = "https://ericoll.internal.ericsson.com/sites/MUNA_RF_Engineering_Services/RF%20Engineering%20Design%20Services/Documents/Forms/AllItems.aspx?RootFolder=%2Fsites%2FMUNA%5FRF%5FEngineering%5FServices%2FRF%20Engineering%20Design%20Services%2FDocuments%2FATT%20RF%20Design%2FCentral%20Region" $oIE = _IECreate($url) Sleep(100) _IELoadWait($oIE) Sleep(100) $hIE = _IEPropertyGet($oIE, "hwnd") ; Get Handle of the IE window WinSetState($hIE, "" ,@SW_MAXIMIZE) Sleep(100) Link to comment Share on other sites More sharing options...
karanmoonlight Posted March 14, 2014 Author Share Posted March 14, 2014 #include <IE.au3> Sleep(500) $url = "https://ericoll.internal.ericsson.com/sites/MUNA_RF_Engineering_Services/RF%20Engineering%20Design%20Services/Documents/Forms/AllItems.aspx?RootFolder=%2Fsites%2FMUNA%5FRF%5FEngineering%5FServices%2FRF%20Engineering%20Design%20Services%2FDocuments%2FATT%20RF%20Design&FolderCTID=0x012000996EDBBE338E5648A6ACBA29634947DE&View={CD8ED170-2F0F-43A5-902F-C30662738710}" $oIE = _IECreate($url) Sleep(100) _IELoadWait($oIE) Sleep(100) $hIE = _IEPropertyGet($oIE, "hwnd") WinSetState($hIE, "" ,@SW_MAXIMIZE) Sleep(100) hi team, I am using the above program but stills its not maximizing my internet explorer webpage.... can anyone suggest any other way of doing so????????? Link to comment Share on other sites More sharing options...
karanmoonlight Posted March 15, 2014 Author Share Posted March 15, 2014 Hi admin...can u pls help me? Link to comment Share on other sites More sharing options...
JohnOne Posted March 15, 2014 Share Posted March 15, 2014 works fine for me. suggest you post autoit version, IE version AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
karanmoonlight Posted March 17, 2014 Author Share Posted March 17, 2014 Auto it 3.3.10.2 and beta 3.3.11.3 IE 10 Link to comment Share on other sites More sharing options...
JohnOne Posted March 17, 2014 Share Posted March 17, 2014 works on both 3.3.8.1 and beta 3.3.11.3 for me with IE 11. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
karanmoonlight Posted March 22, 2014 Author Share Posted March 22, 2014 Its not working on IE10 and beta 3.3.11.3. Can anyone else suggest something? Link to comment Share on other sites More sharing options...
JohnOne Posted March 22, 2014 Share Posted March 22, 2014 Do you get error from... "$hIE = _IEPropertyGet($oIE, "hwnd")" Are you considered checking the return values of your function calls? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
karanmoonlight Posted March 22, 2014 Author Share Posted March 22, 2014 No...i dont get any error in the code posted above. How do i check the return value? I am not so used to auto it so please guide me Link to comment Share on other sites More sharing options...
karanmoonlight Posted March 31, 2014 Author Share Posted March 31, 2014 hi..i am unable to maximize my IE 10 using above code..can anyone please help me? Link to comment Share on other sites More sharing options...
JohnOne Posted March 31, 2014 Share Posted March 31, 2014 Return @error Look at those in the help file AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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