Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5953897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:53:32+00:00 2026-05-22T17:53:32+00:00

this is a simple question, but can’t find an easy answer … I am

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:53:33+00:00Added an answer on May 22, 2026 at 5:53 pm

    The answer is pretty simple: just switch order of opening windows:

    UAC::Exec '' '"$PROGRAMFILES\Internet Explorer\iexplore.exe" "$url_2' '' ''
    then...
    UAC::Exec '' '"$PROGRAMFILES\Internet Explorer\iexplore.exe" "$url_1' '' '' 
    

    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)

    ; This Window is opened as first
    Exec '"$PROGRAMFILES\Internet Explorer\iexplore.exe" "www.google.sk"' # $url_1
    ; This is opened later
    Exec '"$PROGRAMFILES\Internet Explorer\iexplore.exe" "www.unsigned-softworks.sk/installer"'  # $url_2
    
    CheckWindow:
      Sleep 500 ; Wait some time (miliseconds)
    
      ; Find by Window class and by Window name 
      FindWindow $1 "IEFrame" "Google - Windows Internet Explorer" 
      # This name must be known in compile time!!!
      # Get this name by running $url_1 in IE
    
      ; If window is not found (not loaded!) search again 
      IntCmp $1 0 CheckWindow Continue Continue
    
    Continue:
      # If found (opened & loaded), bring $url_1 to front
      System::Call "User32::SetForegroundWindow(i) b ($1)"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think this is a simple question, but I can not find the answer
I've tried Google, but I can't find the answer to this simple question. I
This sounds like a simple question but I can't find good information. I'm writing
This is probably a very simple question, but I can't find the answer, so
This seems like a simple question but I can't seem to find an answer
This seems like a simple question but I can't find the answer anywhere. I've
This is a simple question, but I can't seem to find a definitive answer.
Really quick and simple question but I can't find a decent answer to this
This is probably a simple question but I can't seem to find the solution.
I feel as though this this is a simple question, but can't find an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.