Page 1 of 1

commandline parameter for screenshots not working

Posted: Fri Aug 30, 2024 9:26 am
by Number_1
Hello,

I´ve changed from xn classic to xn mp because it should be more modern...

Trying to create screenshots to work with a keyboard-shortcut and without starting xn mp first.
This has worked with xn classic perfectly but I can´t get it to work with mp.

If I look at about dialog/command, it seems there is a command prompt for capture.
How can I get it to work?
To mak it short: only a shot from the desktop with numbering (_01_) has worked. I can´t I make a shot from an active window and with correct naming (example screenshot_01_date.png)

I´ve tried making alias on windows dektop, rightclick/settings and paste command line parameter as in xn classic:
"C:\Program Files (x86)\XnView\xnview.exe" -capture=window,C:\Users\XXX\Pictures\Screenshots\screenshot_##_$.ext -> works only in xn classic

of course changed the path to:
"C:\Program Files\XnViewMP\xnviewmp.exe" -capture=window,C:\Users\XXX\Pictures\Screenshots\screenshot_##_$.ext -> nothing happens

also tried
"C:\Program Files\XnViewMP\xnviewmp.exe" -capture=fullscreen -fileoutput=C:\screenshot.jpg (to keep it simple) -> nothing happens

"C:\Program Files\XnViewMP\xnviewmp.exe" -capture=desktop,<output_filename> -> opens shotly xn-mp but no screenshot saved anywhere
"C:\Program Files\XnViewMP\xnviewmp.exe" -capture=desktop,<C:\Users\XXX\Pictures\Screenshots\screenshot_##_$.ext> -> same here
"C:\Program Files\XnViewMP\xnviewmp.exe" -capture=desktop,C:\Users\XXX\Pictures\Screenshots\screenshot_##_$.png -> yeah works but naming without the current date and only from desktop - no option for capturing a window??

Re: commandline parameter for screenshots not working

Posted: Sat Aug 31, 2024 2:16 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: commandline parameter for screenshots not working

Posted: Sat Aug 31, 2024 3:57 pm
by Number_1
Thank you Pierre - much appreciated
I will have a look for the next updates and see if it works...

In the meantime I found out to get a screenshot saved (and not only in clipboard) only with Windows11 snipping tool - which is comfortable too.
(Thats the first time since I´m using Windows that you can create screenshots and save directly with ease!)
It has not worked first despite correct settings so I´ve searched for alternative solution with xnview. Now suddenly it works for me so xnview is not absolutly necessary here but nice to have.

For those who cares:
Solution with snipping tool is:
Screenshot shortcut for active window -> print key or Win+Shift+S (select window in toolbar and then click in window)
Screenshot whole screen -> Win+printkey
-> directly save (not only copy to clipboard) ->Snipping Tool Settigs/screenshots auto-save: set to on
-> maybe also necessary? -> Settings/Accessibility preferences/Keyboard/ print key für screenshots: set to on
(maybe names for path and settings may differ because different language)

Re: commandline parameter for screenshots not working

Posted: Thu Oct 10, 2024 2:34 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.8.1. Please check and confirm the bug fix here.

Re: commandline parameter for screenshots not working

Posted: Sat Feb 01, 2025 11:18 pm
by Number_1
Hello,

now I had some time to check
Naming of the file seems to be ok now

when using:
"C:\Program Files\XnViewMP\xnviewmp.exe" -capture=window,C:\Users\XXX\Pictures\Screenshots\screenshot_##_$.png

it makes only a useless shot from the taskbar - not from the activ window. (v.182)

Re: commandline parameter for screenshots not working

Posted: Sat Feb 15, 2025 3:40 pm
by Number_1
Hi there,
Is it possible to fix screenshots from an active window?
Thanks

Maybe it would also make sense to put the commands into the help section for MP

Re: commandline parameter for screenshots not working

Posted: Tue Mar 18, 2025 9:29 pm
by Number_1
hmm, still no reply?

Re: commandline parameter for screenshots not working

Posted: Wed Mar 19, 2025 10:02 am
by xnview
Number_1 wrote: Sat Feb 15, 2025 3:40 pm Is it possible to fix screenshots from an active window?
what's the problem?

Re: commandline parameter for screenshots not working

Posted: Fri Mar 21, 2025 10:01 am
by Number_1
Number_1 wrote: Sat Feb 01, 2025 11:18 pm when using:
"C:\Program Files\XnViewMP\xnviewmp.exe" -capture=window,C:\Users\XXX\Pictures\Screenshots\screenshot_##_$.png

it makes only a useless shot from the taskbar - not from the activ window. -> despite using "window" command
Thanks for the Answer!
I wrote before, just read it :-)