Page 1 of 1

Running CLI Hidden Still Steals Focus

Posted: Mon Feb 13, 2012 10:31 am
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.

Re: Running CLI Hidden Still Steals Focus

Posted: Sat Feb 25, 2012 2:00 pm
by admin
I don't understand the problem. Please give me an exact step-by-step to reproduce the issue.

Re: Running CLI Hidden Still Steals Focus

Posted: Tue Jun 25, 2013 6:18 pm
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.

Re: Running CLI Hidden Still Steals Focus

Posted: Tue Jun 25, 2013 7:16 pm
by admin
If it's not an issue anymore, I won't investigate it further. Thank you for the update.

Re: Running CLI Hidden Still Steals Focus

Posted: Mon May 26, 2014 4:57 pm
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.

Re: Running CLI Hidden Still Steals Focus

Posted: Tue May 27, 2014 2:27 pm
by admin
This came up recently. I was not able to find a viable solution. I am open to suggestions.

Re: Running CLI Hidden Still Steals Focus

Posted: Tue May 27, 2014 6:12 pm
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

Re: Running CLI Hidden Still Steals Focus

Posted: Wed May 28, 2014 8:24 am
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.

Re: Running CLI Hidden Still Steals Focus

Posted: Wed May 28, 2014 11:14 am
by AYColumbia
neuron2 wrote:It's a Win32 GUI app...
Yuck, that explains it.