Running CLI Hidden Still Steals Focus

Support forum for DGAVCDecDI
Post Reply
User avatar
AYColumbia
Posts: 80
Joined: Sun Feb 12, 2012 11:29 am

Running CLI Hidden Still Steals Focus

Post by AYColumbia »

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.
---
omay, arrylay, curlyq & associates
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Running CLI Hidden Still Steals Focus

Post by admin »

I don't understand the problem. Please give me an exact step-by-step to reproduce the issue.
User avatar
AYColumbia
Posts: 80
Joined: Sun Feb 12, 2012 11:29 am

Re: Running CLI Hidden Still Steals Focus

Post by AYColumbia »

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.
---
omay, arrylay, curlyq & associates
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Running CLI Hidden Still Steals Focus

Post by admin »

If it's not an issue anymore, I won't investigate it further. Thank you for the update.
User avatar
AYColumbia
Posts: 80
Joined: Sun Feb 12, 2012 11:29 am

Re: Running CLI Hidden Still Steals Focus

Post by AYColumbia »

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.
---
omay, arrylay, curlyq & associates
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Running CLI Hidden Still Steals Focus

Post by admin »

This came up recently. I was not able to find a viable solution. I am open to suggestions.
User avatar
AYColumbia
Posts: 80
Joined: Sun Feb 12, 2012 11:29 am

Re: Running CLI Hidden Still Steals Focus

Post by AYColumbia »

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
---
omay, arrylay, curlyq & associates
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: Running CLI Hidden Still Steals Focus

Post by admin »

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: 80
Joined: Sun Feb 12, 2012 11:29 am

Re: Running CLI Hidden Still Steals Focus

Post by AYColumbia »

neuron2 wrote:It's a Win32 GUI app...
Yuck, that explains it.
---
omay, arrylay, curlyq & associates
Post Reply