Solved

Stop App from stealing focus

Posted on 2004-03-29
13
682 Views
Last Modified: 2008-02-01
I have a shipping (CPS by Harvey Software) software that has a popup window that will steal the focus from the invoicing software (QuickBooks) about 5 seconds after going to it.

How do I stop it from stealing focus?

Thank you,
turn123
0
Comment
Question by:turn123
  • 7
  • 6
13 Comments
 
LVL 6

Expert Comment

by:jthow
ID: 10704609
TweakUI has an option to stop apps 'stealing' focus.

Micro$oft keep moving it's location so try:-

http://www.pcworld.com/howto/article/0%2Caid%2C36202%2C00.asp

JohnT
0
 
LVL 6

Expert Comment

by:jthow
ID: 10704692
Oops, sorry - that bit may not work on W2k.  :-(

JohnT
0
 
LVL 11

Author Comment

by:turn123
ID: 10704794
jthow,

Great idea!  It's actually the first thing I tried but it didn't work :-(.

turn123
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 6

Expert Comment

by:jthow
ID: 10705423
Have a look at:-

http://www.jsiinc.com/subf/tip2900/rh2909.htm

(On my system, ForegroundLockTimeout was set to 0 and that's not something I'd changed from the alleged default.  Maybe it's been changed by one of the service packs....)

JohnT
0
 
LVL 11

Author Comment

by:turn123
ID: 10706181
jthow,

It looks like my problem shouldn't exist since the value is 200000 but it does :-(.

Thank you for the suggestion and do you have any more?

Would it make a difference that the App is launching a window (part of the App)?

turn123
0
 
LVL 6

Expert Comment

by:jthow
ID: 10712130
Yes, it would.  From the above reference "Windows 2000 doesn't allow a _backround_ task to instantly steal focus."  (My emphasis.)  If it's something that's part of the foreground app then W2K will not suppress it.  My guess is your problem has something to do with the apps being integrated and the way this is handled.  That'd be a matter for the software vendor(s) rather than an OS issue.  Sorry. :-(

JohnT
0
 
LVL 11

Author Comment

by:turn123
ID: 10719925
jthow,

Watching the open processes it opens a new process but the one that steals focus is a background process.

Turn123
0
 
LVL 6

Expert Comment

by:jthow
ID: 10723591
Turn123,

Been doing some playing around and it looks like you can't do what you want. :-(

I reset  ForegroundLockTimeout to 200000.  If an app (I used Excel) is minimised and wants the focus (because it's time for a prompted autosave) then the taskbar icon flashes, but the app does not take the focus.  If an app is triggered by the task scheduler (i.e. it has to be loaded) it does take the focus.

JohnT

0
 
LVL 11

Author Comment

by:turn123
ID: 10731336
jthow,

I really appreciate you taking the time to help with this problem.

Is there any way to not allow a process to take focus ever?

Thank you,
Turn123
0
 
LVL 6

Accepted Solution

by:
jthow earned 250 total points
ID: 10731418
Not that I know of: It's a function of the way the app is coded, rather than what the OS does with it.

JohnT
0
 
LVL 11

Author Comment

by:turn123
ID: 10732132
jthow,

Grrrr this is really frustrating as the software people say its on OS problem.

Please let me know if you think of anything else :-).

BTW, why are you paying for Premium Services?  It looks like you should be qualified for free PS.

Turn123
0
 
LVL 6

Expert Comment

by:jthow
ID: 10732280
Haven't got them to turn it off yet.  [The company's paying for it and it's not a big deal. ;-) ]

Thanks for the points.  Not sure they were deserved - you didn't get what you were after.

JohnT
0
 
LVL 11

Author Comment

by:turn123
ID: 10732312
jthow,

Your welcome :-)  Thank you for the help!

> Not sure they were deserved
http:help.jsp#hi54

I came to the same conclusion but it doesn't hurt to ask.

Turn123
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question