Solved

Stop App from stealing focus

Posted on 2004-03-29
13
686 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

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…
We asked our MSP customer base what their favorite tools were and how they help them serve clients. We focused our questions on favorite tools in the following categories: >PSA tools >RMM tools >Alert management tools >Communication tools and Mo…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

738 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