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
Bobt1234

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
ccatlett1984

 

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
Bobt1234

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
ccatlett1984

 

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
Thread Forum
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
how to set a schedule task to run chkdsk
I tried to to set a schedule task to run chkdsk with a batch file, such as follwoing: echo y|chkdsk C: /F /R shutdown -r I run it on cmd.exe it needs administrator privilege. I run cmd.exe as administrator, then it works. I tried to run it on schedule task and set run by a administrator type...
General Discussion
Schedule a task
I want the computer to execute the following line: mms://wamu-wm.streamguys.com/WAMU-1 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...
Customization
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
Can I schedule a XP Mode task from Win 7?
I have a very old legacy app that would not run or install in Win 7 compatibility mode. I download the Windows VM patch, and the XP Mode application, installed them, and was able to get the application to run. Following some information I found here, I was able to get it pinned to the start menu...
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 23:09.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App