Hello everyone, I am working on a script to automate the process of taking screenshots of graphs in Hypergraph. I am using the below commands in Tcl for the same:
for {set i 0} {$i < $numOfWindows} {incr i} { set filename "pic$picnum.jpg" "page$cnt" SetActiveWindow $activeWindow "page$cnt" SetActiveWindowExpanded true sess CaptureActiveWindow jpeg $filename percent 100 100 "page$cnt" SetActiveWindowExpanded false incr activeWindow incr picnum }
However the issue is that sometimes, I am not getting the screenshot of the graph and instead I am getting blank / black images. I have attached pictures for reference. Any help regarding the same would be appreciated. Thanks.
EDIT:
After some changes to the code, it is working fine now. I am now using CaptureActiveScreen instead of CaptureActiveWindow.