Solved

Stop App from stealing focus

Posted on 2004-03-29
13
680 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
Comment Utility
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
Comment Utility
Oops, sorry - that bit may not work on W2k.  :-(

JohnT
0
 
LVL 11

Author Comment

by:turn123
Comment Utility
jthow,

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

turn123
0
 
LVL 6

Expert Comment

by:jthow
Comment Utility
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
Comment Utility
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
Comment Utility
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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 11

Author Comment

by:turn123
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now