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??
commandline parameter for screenshots not working
Moderators: XnTriq, helmut, xnview, Dreamer
-
- Posts: 15
- Joined: Sat Dec 17, 2011 2:09 pm
commandline parameter for screenshots not working
Last edited by Number_1 on Sat Aug 31, 2024 4:09 pm, edited 1 time in total.
-
- Author of XnView
- Posts: 45495
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: commandline parameter for screenshots not working

Pierre.
-
- Posts: 15
- Joined: Sat Dec 17, 2011 2:09 pm
Re: commandline parameter for screenshots not working
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)
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)
-
- Author of XnView
- Posts: 45495
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: commandline parameter for screenshots not working
This problem is supposed to be fixed in XnView MP 1.8.1. Please check and confirm the bug fix here.
Pierre.
-
- Posts: 15
- Joined: Sat Dec 17, 2011 2:09 pm
Re: commandline parameter for screenshots not working
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)
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)
-
- Posts: 15
- Joined: Sat Dec 17, 2011 2:09 pm
Re: commandline parameter for screenshots not working
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
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