Batch Mode from HyperView

jing_22295
jing_22295 Altair Community Member
edited October 2020 in Community Q&A

Hi there, 

 

I wanted to run a TCL script  without opening the GUI of HyperView, and I need to  capture the pictures in my script. But if I used 'hw.exe  -b -tcl C:/Users/Desktop/test.tcl', the size of pictures I got from the results are too small. They were different from  opening the GUI. The purpose of using Batch is that it runs without opening the GUI of HyperView and got full-screen picture,. Is there something additional that I need to add to command prompt line or to my script???

 

 

Answers

  • tinh
    tinh Altair Community Member
    edited October 2018

    Could you show you script?

    What picture does it capture?

  • jing_22295
    jing_22295 Altair Community Member
    edited October 2018

    pic1 shows the script running in the background. pic2 shows the script running with opening GUI.

    the two are used the same script, but the size of pictures are totally difference. could you please help me to solve this problem???

    P.S.  pic1 used this command to run the script: hw.exe  -b -tcl C:/Users/Desktop/test.tcl

    pic2 used 'hw.exe  -c -tcl C:/Users/Desktop/test.tcl'

     

     

    thanks you very much for your prompt reply

     

     

    <?xml version="1.0" encoding="UTF-8"?>pic1.jpg

    <?xml version="1.0" encoding="UTF-8"?>pic2.jpg

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2018

    To get images of fixed dimension, you can use hwISession CaptureScreenToSize command.

    In addition, you should not run hw.exe in batch mode to create screen images. Though it might works, it depends on your hardware and driver conditions. Instead of running in batch mode, run hw.exe in GUI mode and close the session by hwISession Close in the end.

  • jing_22295
    jing_22295 Altair Community Member
    edited October 2018

    thank you very much for your help