HighlanderSword Posted March 31, 2019 Share Posted March 31, 2019 (edited) Hello, I'm trying to create code that will open multiple tabs in one Ie Session and then only refresh one of those tabs with out moving off the current active tab and not refreshing the other tabs. There will be multiple tabs with the same url. I can easily open the multiple tabs , its the doing the refresh on the 1 tab and not effecting the others that's the challenge I cant seem to resolve #include <IE.au3> ; Opens IE with three tabs Local $oIE1 = _IECreate("www.google.com") _IELoadWait($oIE1) Local $hwndIE1 = _IEPropertyGet($oIE1, "hwnd") __IENavigate($oIE1, "http://www.google.com", 0, 0x800) _IELoadWait($oIE1) __IENavigate($oIE1, "http://autoitscript.com", 0, 0x800) _IELoadWait($oIE1) Please note I do not want to add an plugin extension Any ideas what I should try ? Edited March 31, 2019 by HighlanderSword Link to comment Share on other sites More sharing options...
Nine Posted March 31, 2019 Share Posted March 31, 2019 You need to attach each tab to an object variable like this : expandcollapse popup#include <Array.au3> #include <IE.au3> Opt("MustDeclareVars", 1) Global Const $IE_NEW_TAB = 0x0800 Local $oIE1 = _IECreate("www.google.com") Local $oIE2 = _IECreateTab($oIE1, "ca.yahoo.com") Local $oIE3 = _IECreateTab($oIE1, "www.autoitscript.com") Local $oIE4 = _IECreateTab($oIE1, "www.google.com", 2) Local $arr = WinList("[REGEXPTITLE:(?i)(.*Internet Explorer.*)]") _ArrayDisplay($arr) _IEQuit($oIE4) _IEQuit($oIE3) _IEQuit($oIE2) _IEQuit($oIE1) Func _IECreateTab(ByRef $oIE, $url, $instance = 1) Local $Count = 0, $oIE2 $oIE.Navigate($url, $IE_NEW_TAB) While 1 $oIE2 = _IEAttach($url, "url", $instance) If IsObj($oIE2) Then ExitLoop $Count += 1 If $Count > 100 Then Exit MsgBox(0, "Error", "Load expired") Sleep(50) WEnd _IELoadWait($oIE2, 300) Return $oIE2 EndFunc ;==>_IECreateTab “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
HighlanderSword Posted April 1, 2019 Author Share Posted April 1, 2019 Hello, Thanks for providing the information it worked out great . One other question I have is how do I hide certain tabs ? Link to comment Share on other sites More sharing options...
Nine Posted April 1, 2019 Share Posted April 1, 2019 delete and recreate “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
HighlanderSword Posted April 1, 2019 Author Share Posted April 1, 2019 There are no options to hide a tab at all ? Link to comment Share on other sites More sharing options...
Nine Posted April 1, 2019 Share Posted April 1, 2019 2 minutes ago, HighlanderSword said: There are no options to hide a tab at all ? Just told you one way !!! “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
makemoneyonl Posted April 1, 2019 Share Posted April 1, 2019 Check Inb. Bro <3 Link to comment Share on other sites More sharing options...
makemoneyonl Posted April 1, 2019 Share Posted April 1, 2019 1 hour ago, Nine said: Chỉ cần nói với bạn một cách !!! Check inb. please <3 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 1, 2019 Moderators Share Posted April 1, 2019 @makemoneyonl if you have something to contribute, please do so in the thread. makemoneyonl 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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