Page 1 of 2
New capture command line options issues
Posted: Sun Aug 05, 2007 10:08 pm
by Dreamer
I have reported these issues/bugs in the other topic in the Suggestions group. I have created the new topic in this group instead of split the old topic.
New capture command line options work like this in the final version (1.91.2):
A
When I use
-capture=desktop,e:\test.jpg and
"directory" capture setup option, screenshot is saved correctly, but just a single one can be created this way, others replace the original one.
B
When I use
-capture=desktop and
"directory" capture setup option, screenshot is saved correctly, but the viewer windows just blinks and then browser window is shown - no xnview windows should be shown in this case, since I use option to save the screenshot, not open in xnview.
C
When I use
-capture=desktop and
"open in xnview" capture setup option, screenshot is not saved (not a bug), xnview window is smaller, the viewer windows is not maximized and it's shrinked.
What I've suggested and what I need, is to be able to create and save the screenshot and exit xnview - A is close, but just a single screenshot can be created, B is close too, but xnview exit is missing. C should save the screenshot first, then open it in viewer, but this is not so important.
Re: New capture command line options issues
Posted: Mon Aug 06, 2007 12:59 pm
by xnview
Dreamer wrote:A
When I use -capture=desktop,e:\test.jpg and "directory" capture setup option, screenshot is saved correctly, but just a single one can be created this way, others replace the original one.
It's normal, you must use '#'
B
When I use -capture=desktop and "directory" capture setup option, screenshot is saved correctly, but the viewer windows just blinks and then browser window is shown - no xnview windows should be shown in this case, since I use option to save the screenshot, not open in xnview.
Here i have only the browser, no view window...
C
When I use -capture=desktop and "open in xnview" capture setup option, screenshot is not saved (not a bug), xnview window is smaller, the viewer windows is not maximized and it's shrinked.
Ok
Re: New capture command line options issues
Posted: Mon Aug 06, 2007 9:38 pm
by Dreamer
xnview wrote:Dreamer wrote:A
When I use -capture=desktop,e:\test.jpg and "directory" capture setup option, screenshot is saved correctly, but just a single one can be created this way, others replace the original one.
It's normal, you must use '#'
Thanks, but:
- how should I know that?
- it doesn't work

, just the first file is created, no "2"nd file, tested with desktop and window
Is it possible to use a date (and time) here somehow?
xnview wrote:
B
When I use -capture=desktop and "directory" capture setup option, screenshot is saved correctly, but the viewer windows just blinks and then browser window is shown - no xnview windows should be shown in this case, since I use option to save the screenshot, not open in xnview.
Here i have only the browser, no view window...
Viewer window's just blinks, it's hard to see that, but it's a bug though, isn't it? When I use "Save to Directory", not "Open in xnview", xnview should exit at the end.
Re: New capture command line options issues
Posted: Thu Aug 09, 2007 8:25 am
by xnview
Dreamer wrote:xnview wrote:Dreamer wrote:A
When I use -capture=desktop,e:\test.jpg and "directory" capture setup option, screenshot is saved correctly, but just a single one can be created this way, others replace the original one.
It's normal, you must use '#'
Thanks, but:
- how should I know that?
You have asked for that
- it doesn't work

, just the first file is created, no "2"nd file, tested with desktop and window
Are you sure, i've checked and there is a new file each time!
Is it possible to use a date (and time) here somehow?
Currently no
xnview wrote:
B
When I use -capture=desktop and "directory" capture setup option, screenshot is saved correctly, but the viewer windows just blinks and then browser window is shown - no xnview windows should be shown in this case, since I use option to save the screenshot, not open in xnview.
Here i have only the browser, no view window...
Viewer window's just blinks, it's hard to see that, but it's a bug though, isn't it? When I use "Save to Directory", not "Open in xnview", xnview should exit at the end.
There is no viewer window, i've checked....
For the exit after saving, i don't know. Is it good??
Re: New capture command line options issues
Posted: Thu Aug 09, 2007 3:53 pm
by Dreamer
xnview wrote:Dreamer wrote:xnview wrote:
It's normal, you must use '#'
Thanks, but:
- how should I know that?
You have asked for that

I have asked, per mail, your reply:
"-capture=window
-capture=desktop
-capture=window,c:\file.jpg"
I can't see any "#" here.
xnview wrote:
- it doesn't work

, just the first file is created, no "2"nd file, tested with desktop and window
Are you sure, i've checked and there is a new file each time!
OK, it works if an extension in Capture dialog and command line option is the same, if it's not the same, the first file is created, but the others not.
Perhaps something like ".ext" might be used, than extension from Capture dialog would be used, otherwise we must change it in the Capture dialog and command line option.
Is it possible to use a date (and time) here somehow?
Currently no
Could you add such an option please? Something like <date> <time>, or just "$" for date and time.
xnview wrote:
Here i have only the browser, no view window...
Viewer window's just blinks, it's hard to see that, but it's a bug though, isn't it? When I use "Save to Directory", not "Open in xnview", xnview should exit at the end.
There is no viewer window, i've checked....
For the exit after saving, i don't know. Is it good??
Because there is also the option "Open in xnview", it's enough IMO and you can't create the other screenshots even thought, since xnview window is active, so exit would be the best, you can choose if you create more screenshots then.
Exit would be useful if want to:
- create more screenshots by a hotkey
- use a scheduler to make screenshots every hour, minute...
...
Perhaps these options might help:
http://newsgroup.xnview.com/viewtopic.php?p=51062#51062
These:
"
After capture do this:
[ ] Save the image
[x] Open the image in Viewer
[ ] Open the image(s) Browser
[ ] Exit
Save directory [ . . . . . . . . . . ]
Format [ . . . . . . . . . . ]"
Or, the best - the independent command line options:
save (to save and exit)
open (to save and open in viewer) *
browse (to save and open capture dir. in browser)
* If not possible, just open.
For example:
-capture=desktop,save
-capture=desktop,open
-capture=desktop,browse
However, "browse" wouldn't be very useful IMHO.
Edit:
There is no viewer window, i've checked....
I can definitely see it, when using these Capture setup dialog options:
- Desktop
- Hide xnview
- Multiple capture
- Save - Directory
and these command line option:
-capture=desktop
Posted: Thu Aug 09, 2007 4:13 pm
by Dreamer
Another problem.
D
I can't create an active window screenshot, even if I select "Active window" in the Capture setup dialog. I'm sure the window is active. I'm using this command line option:
-capture=window,c:\file.jpg
Desktop screenshot is created every time, instead of active window.
Edit: I works good when I use a Capture setup dialog and hotkey, but command line option doesn't work.
Re: New capture command line options issues
Posted: Fri Aug 10, 2007 9:25 am
by xnview
Dreamer wrote:- it doesn't work

, just the first file is created, no "2"nd file, tested with desktop and window
Are you sure, i've checked and there is a new file each time!
OK, it works if an extension in Capture dialog and command line option is the same, if it's not the same, the first file is created, but the others not.
Perhaps something like ".ext" might be used, than extension from Capture dialog would be used, otherwise we must change it in the Capture dialog and command line option.
Ok, i check
Could you add such an option please? Something like <date> <time>, or just "$" for date and time.
Ok, i'll add $
Viewer window's just blinks, it's hard to see that, but it's a bug though, isn't it? When I use "Save to Directory", not "Open in xnview", xnview should exit at the end.
There is no viewer window, i've checked....
For the exit after saving, i don't know. Is it good??
Because there is also the option "Open in xnview", it's enough IMO and you can't create the other screenshots even thought, since xnview window is active, so exit would be the best, you can choose if you create more screenshots then.
But if you want to exit after the capture, so you can use the command line!!
There is no viewer window, i've checked....
I can definitely see it, when using these Capture setup dialog options:
- Desktop
- Hide xnview
- Multiple capture
- Save - Directory
and these command line option:
-capture=desktop
You means viewer window or xnview window??
Dreamer wrote:I can't create an active window screenshot, even if I select "Active window" in the Capture setup dialog. I'm sure the window is active. I'm using this command line option:
-capture=window,c:\file.jpg
Desktop screenshot is created every time, instead of active window.
Edit: I works good when I use a Capture setup dialog and hotkey, but command line option doesn't work.
Sorry i don't understand the problem...
Posted: Fri Aug 10, 2007 4:00 pm
by Dreamer
Dreamer wrote:Could you add such an option please? Something like <date> <time>, or just "$" for date and time.
Ok, i'll add $
Thanks.
But if you want to exit after the capture, so you can use the command line!!
OK, but how??
There is no viewer window, i've checked....
I can definitely see it, when using these Capture setup dialog options...
You means viewer window or xnview window??
Viewer windows is shown for a moment, it looks like it would be minimized and restored - I can see such an animation, Viewer is shown and then it's changed to Browser immediately. But this is not so important...
Dreamer wrote:D ...
Sorry i don't understand the problem...
OK, I see that when I'm using this:
-capture=
window
Active
window screenshot is created - correct.
But when I'm using this:
-capture=
window,c:\screenshot.jpg
(or -capture=
window,c:\screenshot#.jpg)
Desktop screenshot is created, instead of active
window -

.
Posted: Mon Aug 13, 2007 8:32 am
by xnview
Dreamer wrote:
But if you want to exit after the capture, so you can use the command line!!
OK, but how??
If you use -capture=window, c:\file.jpg, xnview exits after capture!!
I can definitely see it, when using these Capture setup dialog options...
You means viewer window or xnview window??
Viewer windows is shown for a moment, it looks like it would be minimized and restored - I can see such an animation, Viewer is shown and then it's changed to Browser immediately. But this is not so important...
Strange, i have not this problem!
Dreamer wrote:D ...
OK, I see that when I'm using this:
-capture=
window
Active
window screenshot is created - correct.
But when I'm using this:
-capture=
window,c:\screenshot.jpg
(or -capture=
window,c:\screenshot#.jpg)
Desktop screenshot is created, instead of active
window -

.
Right
Posted: Mon Aug 13, 2007 7:34 pm
by Dreamer
xnview wrote:If you use -capture=window, c:\file.jpg, xnview exits after capture!!
Oh right, with "$" it will be enough.
Posted: Mon Aug 13, 2007 8:12 pm
by Dreamer
I have tested v1.91.3, results:
All bugs have been fixed except these:
- When I use -capture=desktop and "open in xnview" capture setup option, xnview's viewer window size is changed, it's smaller, window position looks correct, but it's quite annoying, since viewer window size is lost after each capture.
- I still can see the viewer window before browser, but it's a very minor issue, never mind.
- $ (date_time) has been added, thanks, but the new command line options have not been added to Command line help, these options are very useful, but there is no information, even in the changelog, e.g. "$", so just few users can use them.
Anyway, -capture=window,d:\screenshot$.ext works perfect now, thank you very much for that, Pierre!
Posted: Sat Aug 25, 2007 9:02 pm
by Dreamer
Another minor bug:
- When I use -capture=window,d:\screenshot$.ext for example, the cursor is always included, also if "Include cursor" option in Capture setup dialog is disabled.
Posted: Wed Aug 29, 2007 11:32 pm
by Dreamer
v1.91.4
- When I use -capture=desktop and "open in xnview" capture setup option, xnview's viewer window size is changed, it's smaller, window position looks correct, but it's quite annoying, since viewer window size is lost after each capture.
XnView is opened in fullscreen now, but when I switch to window mode (viewer), size is still changed - always.
- When I use -capture=window,d:\screenshot$.ext for example, the cursor is always included, also if "Include cursor" option in Capture setup dialog is disabled.
It looks the cursor is not included when using just -capture=desktop, but it is still included when using -capture=window,d:\screenshot$.ext.
Posted: Thu Sep 27, 2007 1:34 pm
by xnview
Dreamer wrote:- When I use -capture=window,d:\screenshot$.ext for example, the cursor is always included, also if "Include cursor" option in Capture setup dialog is disabled.
It looks the cursor is not included when using just -capture=desktop, but it is still included when using -capture=window,d:\screenshot$.ext.
I can't reproduce, the cursor is not included in the 2 cases if 'include cursor' is not checked in the capture dialog...
Posted: Thu Sep 27, 2007 10:56 pm
by Dreamer
Strange, I can always reproduce this bug, with both:
-capture=window,d:\screenshot$.ext
and -capture=desktop,d:\screenshot$.ext
Make sure the cursor is within the window, or try "desktop".