Solved

Stop App from stealing focus

Posted on 2004-03-29
13
689 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

617 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