Hello,
I use greenshot to make screenshots. I use it all the time. I configured greenshot to open the screenshot file in paint.net
so it will typically run a command line like
"C:\Program Files\paint.net\paintdotnet.exe" "{0}" (where "{0}" is the filename of the image)
=> and then bang, paint.net comes in the frontview. which is something really annoying.
I tried using a bat file that starts pdn minimzed:
START /MIN "" "C:\Program Files\paint.net\paintdotnet.exe"
=> to no avail. pdn still goes in the forefront instead of being minimized ๐
So I tried with a VB script to start a silence shell and use the intWindowStyle
option of the Run command as documented there => https://docs.microsoft.com/en-us/previous-versions/d5fk67ky(v=vs.80)?redirectedfrom=MSDN
set s = createobject("WScript.Shell")
's.run """C:\Program Files\paint.net\paintdotnet.exe""", 2
's.run """C:\Program Files\paint.net\paintdotnet.exe""", 7
s.Run chr(34) & "C:\Program Files\paint.net\paintdotnet.exe" & Chr(34), 2
I basically tried all possible values from 0 to 10 => in all cases the pdn just ignores the value and its main window just come in forefront. ๐
I also notice in MS documentation:
I also tried using the minimized option of a shortcut towards pdn => to no avail. pdn just ignores it entirely. (screenshot below) ๐
=> How can I start pdn without its main UI coming in the forefront?
thanks