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
Reply

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




Thread Tools



Similar help and support threads for2: How do I schedule a Windows task to run in the foreground?
Thread Forum
Schedule task to run when a new profile is created using Win 7 General Discussion
how do schedule a task when another program exists Software
Windows 7 Schedule Manager (Create Task) Help General Discussion
how to set a schedule task to run chkdsk General Discussion
Schedule a task Customization
Task Scheduler & Running application in foreground.... General Discussion
Can I schedule a XP Mode task from Win 7? Virtualization

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 09:17 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33