Running CLI Hidden Still Steals Focus

Support forum for DGAVCDecDI
Post Reply
User avatar
AYColumbia
Posts: 35
Joined: Sun Feb 12, 2012 12:29 pm

Running CLI Hidden Still Steals Focus

Post by AYColumbia » Mon Feb 13, 2012 11:31 am

Hello,
I just purchased this and it works great. However, I run it via CLI in my automated process which works on many files and it constantly steals focus from other windows. Can this be changed please to not do this? It's done it twice just now while I was typing this message. Thanks a lot.
Gigabyte Z87X-HD3 | Intel P6 @ 3500MHz (max : 4100) | 16GB (2 x 8192 DDR3-SDRAM ) | Intel HD Graphics 4600 | NVIDIA GeForce GTX 650

User avatar
admin
Site Admin
Posts: 4411
Joined: Thu Sep 09, 2010 3:08 pm

Re: Running CLI Hidden Still Steals Focus

Post by admin » Sat Feb 25, 2012 3:00 pm

I don't understand the problem. Please give me an exact step-by-step to reproduce the issue.

User avatar
AYColumbia
Posts: 35
Joined: Sun Feb 12, 2012 12:29 pm

Re: Running CLI Hidden Still Steals Focus

Post by AYColumbia » Tue Jun 25, 2013 6:18 pm

Hey,
I'm sorry I never responded to this. I know it's been a while and I think I resolved this with a switch I was missing. I can't remember what the switch was (maybe -h which makes sense to me ;) ), but bottom line, this is not an issue any longer.

Basically, what was happening initially, is when the command is run, the focus would be given to the DOS window that is running it. If I'm processing multiple files, every time DGI is started, focus would be given to the DOS window, so if I was writing an email, the DOS window would pop up and take focus.
Gigabyte Z87X-HD3 | Intel P6 @ 3500MHz (max : 4100) | 16GB (2 x 8192 DDR3-SDRAM ) | Intel HD Graphics 4600 | NVIDIA GeForce GTX 650

User avatar
admin
Site Admin
Posts: 4411
Joined: Thu Sep 09, 2010 3:08 pm

Re: Running CLI Hidden Still Steals Focus

Post by admin » Tue Jun 25, 2013 7:16 pm

If it's not an issue anymore, I won't investigate it further. Thank you for the update.

User avatar
AYColumbia
Posts: 35
Joined: Sun Feb 12, 2012 12:29 pm

Re: Running CLI Hidden Still Steals Focus

Post by AYColumbia » Mon May 26, 2014 4:57 pm

Hey, I ran into this issue again today with DGDecNV. Do you want me to start a new thread in the proper location or just keep it here? I'll explain further later. Thanks.
Gigabyte Z87X-HD3 | Intel P6 @ 3500MHz (max : 4100) | 16GB (2 x 8192 DDR3-SDRAM ) | Intel HD Graphics 4600 | NVIDIA GeForce GTX 650

User avatar
admin
Site Admin
Posts: 4411
Joined: Thu Sep 09, 2010 3:08 pm

Re: Running CLI Hidden Still Steals Focus

Post by admin » Tue May 27, 2014 2:27 pm

This came up recently. I was not able to find a viable solution. I am open to suggestions.

User avatar
AYColumbia
Posts: 35
Joined: Sun Feb 12, 2012 12:29 pm

Re: Running CLI Hidden Still Steals Focus

Post by AYColumbia » Tue May 27, 2014 6:12 pm

neuron2 wrote:This came up recently. I was not able to find a viable solution. I am open to suggestions.
Hmmm, interesting. Am glad I'm not the only one. ;)

From what I can tell, you're spawning the UI in a hidden state, is that correct or is DGIndexNV a true CLI app, i.e., console app? It would be nice to have a UI executable, e.g., DGIndexUI which uses a CLI console app like DGIndexNV separately. I think that would alleviate this issue. Obviously it's only a pain when trying to index a LOT of files while doing other work and this weekend that was exactly the case for me, but generally, it's not a huge deal.

[EDIT] BTW, this is the kind of batch file I use to process the files:

Code: Select all

@echo off
setlocal EnableDelayedExpansion
for /f "delims=" %%f in ('dir /b /s "*.mkv"') do (
	set dgifile=%%~nf.dgi
	if not exist "!dgifile!" (
		echo Creating DGI file "!dgifile!"
		set dgidiexec=DGIndexNV.exe -i "%%f" -o "!dgifile!" -h -e
		echo RUNNING: !dgidiexec!
		!dgidiexec!
	)
)
endlocal
Gigabyte Z87X-HD3 | Intel P6 @ 3500MHz (max : 4100) | 16GB (2 x 8192 DDR3-SDRAM ) | Intel HD Graphics 4600 | NVIDIA GeForce GTX 650

User avatar
admin
Site Admin
Posts: 4411
Joined: Thu Sep 09, 2010 3:08 pm

Re: Running CLI Hidden Still Steals Focus

Post by admin » Wed May 28, 2014 8:24 am

It's a Win32 GUI app. Sorry to disappoint you but I am not going to create and maintain a parallel pure console app.

User avatar
AYColumbia
Posts: 35
Joined: Sun Feb 12, 2012 12:29 pm

Re: Running CLI Hidden Still Steals Focus

Post by AYColumbia » Wed May 28, 2014 11:14 am

neuron2 wrote:It's a Win32 GUI app...
Yuck, that explains it.
Gigabyte Z87X-HD3 | Intel P6 @ 3500MHz (max : 4100) | 16GB (2 x 8192 DDR3-SDRAM ) | Intel HD Graphics 4600 | NVIDIA GeForce GTX 650

Post Reply