Multiple RAR files unpack: TC goes behind other open windows

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
lleader
Junior Member
Junior Member
Posts: 10
Joined: 2011-09-14, 07:57 UTC
Location: Mississauga, Ontario, Canada

Multiple RAR files unpack: TC goes behind other open windows

Post by *lleader »

If I select one RAR file to unpack, when finished TC stays in the foreground. If I select multiple RAR files to unpack when finished TC goes behind any other open windows. How do I stop this from happening?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You've given too little information. Which unpacker you're using (internal or external), which operation mode (foreground, background), what do you do while unpacking is in progress (sit and look onto its window or switch to another applications)...
Last edited by MVV on 2014-03-25, 14:42 UTC, edited 1 time in total.
lleader
Junior Member
Junior Member
Posts: 10
Joined: 2011-09-14, 07:57 UTC
Location: Mississauga, Ontario, Canada

Post by *lleader »

External unpacker (WinRAR), foreground mode, sit staring at window (and get annoyed when it disappears from sight) :?
lleader
Junior Member
Junior Member
Posts: 10
Joined: 2011-09-14, 07:57 UTC
Location: Mississauga, Ontario, Canada

Post by *lleader »

More input - it seems to not do it with multiple single part RAR files, but does do it with multiple RARs containing many parts each.
lleader
Junior Member
Junior Member
Posts: 10
Joined: 2011-09-14, 07:57 UTC
Location: Mississauga, Ontario, Canada

Post by *lleader »

OK, your question about what unpacker I was using led me to experiment. Using the built in unpacker doesn't exhibit the problem so I'll use that and go away.

Thank you for leading me to a solution.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You're welcome. :)

BTW, as I know, Windows allows application to lose focus when some conditions are met (one of them is some timeout after last input). When application closes (external WinRar in our case), Windows usually switches back to previously active application (next in Z-order). But in your case it doesn't, have I got it right?

Unclear thing is how TC gets overlapped by other windows: w/o user interracting it shouldn't go to background. Anyway, if it is went to background, it won't go to foreground automatically until it is activated.
lleader
Junior Member
Junior Member
Posts: 10
Joined: 2011-09-14, 07:57 UTC
Location: Mississauga, Ontario, Canada

Post by *lleader »

MVV wrote: Windows usually switches back to previously active application (next in Z-order). But in your case it doesn't, have I got it right?

Well, it doesn't go back to TC. But the reason may be it loses track of TC's window. As WinRAR goes about it's business it opens successive DOS windows - a new one for each RAR, closing the one previous. If I only do one RAR file then TC would be the previous window, but with multiple RAR files when it does the last one the previous window was a closed DOS one.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

lleader wrote:it opens successive DOS windows
It really opens black command line windows? Then there's something going wrong.
The Rar-packer setting points to "WinRAR.exe"?

But I can confirm that TC gets pushed into the background after unpacking several rars.

TC 8.50 WinRar 5.01 and 5.10b

*Edit:

You have to set "Reuse existing window" in WinRAR to keep TC in the foreground after unpacking (Options->Settings->General).
lleader
Junior Member
Junior Member
Posts: 10
Joined: 2011-09-14, 07:57 UTC
Location: Mississauga, Ontario, Canada

Post by *lleader »

ZoSTeR wrote: It really opens black command line windows? Then there's something going wrong.
The Rar-packer setting points to "WinRAR.exe"?
No. It points to "C:\Program Files\WinRAR\Rar.exe"

I changed it to use WinRAR.exe. TC still goes to background.

I checked off 'Reuse existing window'. TC still goes to background.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I found WinRar.exe (version 4) on my PC and tried to unpack some files after opening calculator in background. Test results differ. Sometimes calculator becomes active, sometimes TC gets focus after unpacking... sometimes Opera... :D Well, it seems that application that gets focus is the one that was active before TC.
Post Reply