Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How do I schedule a Windows task to run in the foreground?

14 Jun 2010   #1

Windows 7
How do I schedule a Windows task to run in the foreground?

How do I force a scheduled task to run as a foreground window, to capture the focus when it runs?

I wrote a little Delphi app to open a reminder window, but when I schedule it the silly window stays in the background, behind the other 50 windows I routinely have open, and I'm likely to miss it.

I tried tweaking the app to force it to gain focus, but the only thing that does is make the icon flash in the icon bar.

Is there a way to do this?

My System SpecsSystem Spec
14 Jun 2010   #2


In order to Force focus, you would have to include some stuff in the script. You need to take focus, then ignore user imput while it runs. Thats really the only way to force focus. Unless you can figure out how to make the window "always on top", but thats outside of my scripting knowledge.
My System SpecsSystem Spec
14 Jun 2010   #3

Windows 7

Great point!

Thanks for the "always on top" tip. That sort of works. It doesn't cause the window to gain focus, but at least displays it on top of all other windows.

I have several other Delphi apps that use the "window always on top" feature. I'm surprised I didn't think of it.

A partial solution is better than no solution.
My System SpecsSystem Spec

14 Jun 2010   #4


Glad I could be of some help.
My System SpecsSystem Spec

 How do I schedule a Windows task to run in the foreground?

Thread Tools

Similar help and support threads
Thread Forum
Task Schedule err msg: corrupted task image
I don't use Task Scheduler at all and I've seen this err msg before, so I've never bothered to clean that up. But now I want to do that. The err messages are many, each one popping up with a different task name. But eventually the long string of popups end. You have to click the OK button...
Windows 7 schedule Task
Hi, Currently having some problem on the schedule job task on windows 7. example script in my bat file as list below. so we schedule and it run only thing is it did not show the dos windows for us to reply message. kindly help. Thanks echo on said Hello pause.
General Discussion
Windows 7 Schedule Manager (Create Task) Help
Hey 7Forums Users, Hopefully someone with a some broad knowledge of the 'Windows 7 Schedule Manager' is able to help me setup a new task. I am looking for instructions to setup a new task. I haven't used the schedule manager before, but if your clear on explanations, I am an IT Technical...
General Discussion
Schedule a task
I want the computer to execute the following line: mms:// at 7:00 am until 10 am Monday through Friday. Unconditionally. I have explored the task menus ad-nausium... and still it does not trigger. There are simply too many options to list them here to...
Task Scheduler & Running application in foreground....
Hi, My requirement is to start an application (UI based) in the foreground as soon as the PC boots (whether user is logged in or not). I added a task to the task scheduler & configured it to run under the same account as my foreground logon account. I am seeing the task is scheduled but it...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 20:31.
Twitter Facebook Google+