Re: HyperSnap -print command issue
2018/04/06 11:09:02
(permalink)
*** Response from Thomas ******
~~~~~~~~~~~~~~
commandline problem
~~~~~~~~~~~~~~
Hello DW,
my work pc won't let me add a reply in the thread, no idea why. So I will answer with this private message. It would help others, if you could reply in the thread WITH my text citated. Thanks.
Reply:
I just tried your command with HyperSnap 7 on a Windows 7 computer and it worked.
Before I go into the details, please note, that HyperSnap has to be EXITED COMPLETELY before using the commandline commands. If HS is still present in the tray, it won't work.
I opened a DOS window, went to the HS path and entered your command. It of course snapped the active DOS window, but all printing parameters were accepted and worked. I did not try to create a batch file, but I don't see, why there should be a difference.
Please try again with HS completely closed.
Best from Berlin
Thomas
The lesser admin
***************************************
Allow me to explain my HyperSnap problem and the solution I found (It works on Window 7 and Win2008 server)
I work in a manufacturing plant and productions are control with HMI graphihcs. I am working on adding a link (button, I called in my previous e-mail) on graphics to a windows batch command file. The goal is for the operators to click on the link to execute the HprSnap6.exe to print a HMI graphics.
==> "C:\Program Files (x86)\HyperSnap 6\HprSnap6.exe" -snap:awin -print:l:inv:af -exit
When I executee the above command, the HyperSnap window would be displayed with the captured image of the active window. There was no print out and the HyperSnap window would stay up until I closed it manually. So, I added another switch -hidden and it still did not work. Same results were observed when using the batch command file or execute the command directly on DOS. Just by accident, I found out, if I logged off the operator session and logged back in (same user), then the command would work. With the command listed below, when executed inside a batch command file, a pop-up window with a print message will appear. It will disappear when the print job is done. The image will be printed with inverted black and white as specified. The HyperSnap window will not appear and stay up.
==> "C:\Program Files (x86)\HyperSnap 6\HprSnap6.exe" -snap:awin -print:l:inv:af -hidden -exit
Thanks everyone for your help.