Reply to post

HyperSnap -print command issue

Author
DW
User
  • Total Posts : 0
  • Scores: 0
  • Reward points: 0
  • Joined: 2018/03/30 17:04:18
  • Status: offline
2018/04/02 09:21:34 (permalink)
0

HyperSnap -print command issue

Hi, I just installed HeperSnap V6.91.03 on a Windows 7 PC.  On a graphics, I implemented a "button" which would execute a batch file to print the graphics when selected.  The goal is to print the screen of an active windows by clicking on the button, without having to make the selections inside "HyperSnap" window every time.  When the button is clicked, it only displayed the Hypersnap 6 windows.  I tried  to execute the command in DOS and get the same result.  The command used is  "C:\Program Files (x86)\HyperSnap 6\HprSnap6.exe"  -snap:awin -print:l:inv:af.  I tried different combinations of the switches and it did not help.  Just want to see if anyone has successfully executed Hypersnap command in DOS to print an active windows.  Your help is greatly appreciated. 
 
 

4 Replies Related Threads

    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: HyperSnap -print command issue 2018/04/05 13:39:00 (permalink)
    0
    I'm not sure what you button is - in some program that you have created, that has a window, and that button is part of that window?
     
    Anyway, try to add -iconic command line option so that HyperSnap 6 starts minimized. That way it won't be the active window when it starts and should not capture itself, e.g.:
     
    "C:\Program Files (x86)\HyperSnap 6\HprSnap6.exe" -iconic  -snap:awin -print:l:inv:af
     
    Greg
    DW
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/03/30 17:04:18
    • Status: offline
    Re: HyperSnap -print command issue 2018/04/06 11:09:02 (permalink)
    0
    *** 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.
     
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: HyperSnap -print command issue 2018/04/06 12:02:00 (permalink)
    0
    @DW, did you add the -iconic command line parameter as I suggested in my first response?
     
    Greg
    DW
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/03/30 17:04:18
    • Status: offline
    Re: HyperSnap -print command issue 2018/04/06 12:47:59 (permalink)
    0
    Hi Greg
    No, I did not.  The issue I had was the batch command with the HyperSnape6 & switches did not print the image.  It correctly captured the active window inside HyperSnape6 pop-up window.
    Thanks.
    DW
    Jump to:
    © 2024 APG vNext Commercial Version 5.1