this is a simple question, but can’t find an easy answer …
I am writing a script in NSIS and I need to open two windows in Internet Explorer
So I use …
UAC::Exec ” ‘”$PROGRAMFILES\Internet Explorer\iexplore.exe” “$url_1’ ” ”
then…
UAC::Exec ” ‘”$PROGRAMFILES\Internet Explorer\iexplore.exe” “$url_2’ ” ”
But I would like the $url_2 to be opened BEHIND/in the background of the one with $url_1
I’m going crazy there… Thanks for any help !
ps. I’m not forced to use UAC::Exec as long as It starts a new IE window.
The answer is pretty simple: just switch order of opening windows:
So the $url_2 will be behind $url_1 because it is opened later…
Edit
If you wish to have some exact window in the front you must know it’s name (IE set name to window after it is fully loaded).
Use this simple loop to bring required window in the front. (I used Exec, but works fine with UAC and nsExec)