New windows open in background

Programs open in the background instead of the foreground

‎03-17-2017 01:47 PM

  • Mark as New
  • Bookmark
  • Subscribe
  • Permalink
  • Print
  • Email to a Friend
  • Flag Post

Basically when I open a new window or a program it opens behind the already existing programs and windows. And I cant seem to find a solution anywhere. A solution would really be helpful. Thanks in advance.

‎03-18-2017 03:54 PM

  • Mark as New
  • Bookmark
  • Subscribe
  • Permalink
  • Print
  • Email to a Friend
  • Flag Post

Welcome to HP Forums, this is a great place to get support, find answers and tips.

Thank you for posting your query, I’ll be more than glad to help you.

I understand that you are unable to open a new window or a program as it opens behind the already existing programs and windows and hence not visible.

Let’s go through a few steps to resolve this issue.

You can try closing your open programs/windows, right-click on the task bar and unlock your task bar. Once unlocked, simply click again to lock. Try opening your programs now.

Let me know how this works.

You have a good day ahead.

Rainbow23
I am an HP Employee

If you found this post helpful, you can let others know and also show your appreciation by clicking the “ Accept as Solution ” button, “ Thumbs up » button!

‎03-19-2017 08:40 AM

  • Mark as New
  • Bookmark
  • Subscribe
  • Permalink
  • Print
  • Email to a Friend
  • Flag Post

I tried that . doesnt seen to solve the issue

‎03-20-2017 08:04 AM

  • Mark as New
  • Bookmark
  • Subscribe
  • Permalink
  • Print
  • Email to a Friend
  • Flag Post

Thank you for stopping by the HP forums. A Good day to you. I read the post about programs running in the background instead of the foreground. I will be delighted to assist you with this.

A stupendous effort, brilliant description and very smart diagnosis of the issue before posting. Kudos to you on that score. You are an important HP customer and it is paramount to assist you here. I also take it as a privilege to share this platform with you.

Fist off, to assist you better I would require more information regarding this.

  • Did this happen after a windows or software update? Do you remember?
  • What applications are you trying to launch?
  • Are they Apps like MS Word, excel, or games?
  • Have you tried multiple apps and checked to isolate the issue.

If it is a recent occurrence, then please try a system restore to an earlier time before the issue started to try and correct the issue from this link: http://support.hp.com/us-en/document/c03327545

please follow the option “Restore your computer when Windows starts normally” and follow the on-screen instructions.

If this does not fix the issue then please check this Third-party link from ten forums: https://www.tenforums.com/general-support/26060-starting-new-program-opens-program-window-background. Please do not click on any image, link, following or download. This link is only for viewing purposes only and to follow instructions.

Please check this link and let me know if this fixes the issue also: https://answers.microsoft.com/en-us/windows/forum/windows_7-performance/windows-7-explorer-window-do. Although it is for windows 7 it should work for windows 10 also. Please backup your registry before performing the registry tweak. Please keep me posted.

Hope this helps. Let me know how this goes. I genuinely hope the issue gets resolved without hassles and the unit works great. Please reach out for any issues and I’ll be there to assist you.

To simply say thanks , please click the «Thumbs Up» button to give me a Kudos to appreciate my efforts to help.

If this helps, please mark this as “Accepted Solution” as it will help several others with the same issue to get it resolved without hassles.

Take care now and have a splendid week ahead.

Microsoft Edge window.open() not honoring width height, and opens in background

I’m on Windows 10 preview Build 10130, and the window.open method in the new Edge browser isn’t behaving as per the specification.

If you use the example code in https://msdn.microsoft.com/en-us/library/ms536651(v=vs.85).aspx, and click to open a new window, it will open a new window in the background, and will completely ignore the width and height.

3 Answers 3

This is now resolved in windows build 10162

The open method documentation and sample code in the URL you shared is aimed at IE and has not been updated yet for Edge. As i have noticed while reading through that page. Edge is still being polished and refined while we are in the insider preview mode. On Build 10162, I got it working here on this JSFiddle http://jsfiddle.net/RamiSarieddine/wu09fh1d/

you can see the window opening with height 500, width 300 with a scroll bar, mini-maximize and close button. Check the screenshot below.

If the height is higher than the screen (including the browser fluff), the window will be maximized. This is different than the behavior using IE 9, 10, 11.

This is with RTM Win10 Edge.

Not the answer you’re looking for? Browse other questions tagged javascript microsoft-edge or ask your own question.

Linked

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.4.16.39093

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

New windows sometimes open in the background #1

Comments

elementaryBot commented May 15, 2017 •

Excpected behavior: When I launch a second instance of an app I expect it to pop up to the foreground and take focus.
What happens instead: This behavior is not consistent.

Let’s say you have your web browser open and then open a terminal (using Ctrl-Alt-T or whatever method). It opens to the foreground and takes focus as it should. Then when you open another terminal it also pops up to the foreground and takes focus. This behavior is expected, no complaints here, BUT here comes the bug:

While having your browser open (I use Firefox), open a terminal (which takes focus in the foreground as it should) and then put focus back to the browser and from there fire up a new terminal, it opens in the background (red bounch animation in the dock)! This is very annoying and can hardly be a feature?

This bug is also SOMETIMES present when having Firefox open and firing up Chromium. Sometimes Chromium pops to the foreground as it should, sometimes it doesn’t. Don’t have any more detailed info off the top of my head but can’t seem to recall any other app pair behaving like this, at least often enough to annoy me.

Note: I have my dock on autohide (which doesn’t seem to matter, I just reproduced the bug with «hide on maximize»).

Summary:
open terminal -> open another terminal = WORKS (the second terminal takes focus)
open terminal -> open another app -> open another terminal = DOESN’T (the second terminal opens in background)

Launchpad Details: #LP1220179 oscarfroberg — 2013-09-03 11:00:29 +0000

The text was updated successfully, but these errors were encountered:

Apps are launching behind the Files UWP app window #985

Comments

Taras-Parfeniuk commented Jun 10, 2020 •

Describe the bug
If Windows Terminal set as default terminal app, after a click on ‘Open in Terminal’ context menu option the terminal window opens behind the Files UWP window, and the Files UWP window remains in focus.

To Reproduce
Steps to reproduce the behavior:

  1. Go to ‘Settings / Preferences’
  2. Select ‘Windows Terminal’ in ‘Terminal Applications’ dropdown
  3. Go to any directory
  4. Open right click context menu
  5. Click on ‘Open in Terminal’ option
  6. The Windows Terminal window opens, but the Files UWP window remains in focus

Expected behavior
A newly opened terminal window should be focused like it is for CMD terminal application.

Screenshot

Desktop (please complete the following information):

  • OS Version: Windows 10 1909 (Build: 18363.900)
  • Files UWP Version: 0.9.2.0
  • Windows Terminal Version: 1.0.1401.0

The text was updated successfully, but these errors were encountered:

XPoppyX commented Jun 10, 2020

for me any file opens behind the app

Jaiganeshkumaran commented Jun 15, 2020

@XPoppyX Same for me. I think it’s a bug.

yaichenbaum commented Jun 15, 2020

When opening the app we need to set it to be focused, I haven’t looked into it but I would assume it’s a simple parameter.

lampenlampen commented Jun 16, 2020

for me only for the first or second time, launching the terminal, the terminal is in the background. After the third time it always opens in the foreground

yaichenbaum commented Jun 17, 2020

I have not been able to reproduce this issue, @XPoppyX @Jaiganeshkumaran @lampenlampen what version of Windows are you running? Perhaps the behavior changed with 2004 and that is why I cannot reproduce this.

Jaiganeshkumaran commented Jun 17, 2020

@yaichenbaum I am using Windows 10 Insider Preview Fast Ring.

XPoppyX commented Jun 17, 2020

in the microsoft store version it does happen, but with the last changes to the master branch I can no longer reproduce this issue

Jaiganeshkumaran commented Jun 20, 2020

If you’re using Windows 10 Insider Preview, the issue of apps opening in the background has been fixed with Build 20150.

FibYar commented Jun 20, 2020

If you’re using Windows 10 Insider Preview, the issue of apps opening in the background has been fixed with Build 20150.

Can it be fixed in «regular» Windows 10 (I use 19.09)?

duke7553 commented Jun 25, 2020

I noticed Command Prompt doesn’t have this issue. Can anyone else verify if this bug is with the Windows Terminal app only?

XPoppyX commented Jun 25, 2020

only with the terminal app for me

duke7553 commented Jun 25, 2020

We could always bring the Window to the foreground with Win32 APIs shortly after launching it.

@gave92 This sounds right up your ally. 😀

gave92 commented Jul 2, 2020 •

@duke7553 I’m not finding a good way of bringing the window to the front :/
Issue is finding what was launched:

  • Launcher.LaunchFileAsync won’t return the process/window that was opened
  • Process.Start(file_path) often returns null if the launched app was UWP

jonnypjohnston commented Jul 2, 2020 •

I have this same issue and also when opening a PDF file. Acrobat Pro opens in the background. I would add more details to this response to the email I received however, I have no idea where to look. I just really love this file manager!

JP Johnston ME CSWP
Rogue Exploration Technologies

duke7553 commented Jul 2, 2020

@gave92 So, you’re saying Process.MainWindowHandle would return null, so we cannot use it in BringWindowToTop() ?

gave92 commented Jul 3, 2020 •

@duke7553 The issue of launched app appearing on the background does not seem limited to the Window Terminal (#1270).
So I was hoping to find something that works in the general case (e.g. opening a file).

  • Where we have a process object, like here, we can use Process.MainWindowHandle and bring the window to the top (this should work for windows terminal)
  • In other places a process object is not available:
    • like here we don’t get a process or window handle out of LaunchFileAsync
    • and here we’ll get a null return value from Process.Start in case the file was launched in a UWP app

Edit: but perhaps we can start by fixing Window Terminal and think on the rest later 🙂
Edit 2: opened a PR with some test code that may solve this: @XPoppyX could you test this and see if it solves the issue? thanks!

Edit 3
The above PR #985 succeeded in consistently bringing the window to the front but I was not able to activate it (user had to click on it)

How to run a command in the background on Windows?

In linux you can use command & to run command on the background, the same will continue after the shell is offline. I was wondering is there something like that for windows…

5 Answers 5

I’m assuming what you want to do is run a command without an interface (possibly automatically?). On windows there are a number of options for what you are looking for:

Best: write your program as a windows service. These will start when no one logs into the server. They let you select the user account (which can be different than your own) and they will restart if they fail. These run all the time so you can automate tasks at specific times or on a regular schedule from within them. For more information on how to write a windows service you can read a tutorial online such as (http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx).

Better: Start the command and hide the window. Assuming the command is a DOS command you can use a VB or C# script for this. See here for more information. An example is:

You are still going to have to start the command manually or write a task to start the command. This is one of the biggest down falls of this strategy.

  • Worst: Start the command using the startup folder. This runs when a user logs into the computer
  • Читайте также:  Pt astra serif alt linux
    Оцените статью