elbhiri Posted March 12, 2017 Posted March 12, 2017 i have two pages a.au3 and b.au3 both has Global $oIE = _IECreate($myUrl, 1) they creating two windows for the same link when i try in IE using New session from File Section it's works successfully that many each windows has its own sessions but when i open the both files they login to the same account. i want each windows to log in to the informations into it. is there any way i can open every file with new session in Internet explorer from autoitscript Thanks in advance
elbhiri Posted March 13, 2017 Author Posted March 13, 2017 On 12/03/2017 at 5:21 AM, Subz said: So why not just use _IECreate($myUrl)? where i launch the both files in the same time it merge the session that mean the same account will be opened in the same two differents IE windows i have just used this and it worked successfully. #include <IE.au3> Global $myUrl = "xxxxxxxxxxxxxxxx" RegWrite('HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main','SessionMerging','REG_DWORD','00000000') ShellExecute ("iexplore.exe", " -nosessionmerging about:blank") WinWait ("Blank Page") Global $oIE = _IEAttach ("about:blank", "url") _IELoadWait ($oIE) _IENavigate ($oIE, $myUrl)
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