Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does one obtain a snapshot of a terminal window through aspect?

Status
Not open for further replies.

macinkilt

Technical User
Apr 7, 2006
5
I am trying to write a script that will take a snapshot (or otherwise capture data) from a procomm screen at prescribed intervals and email to users. I have thus far been unable to get an "alt print screen" to the windows clipboard so that I can paste it into an email.
I have tried

sendkey Alt 0x2c and
sendkey alt 55

but the data is neither pasted into the email or availible in the windows clipboard for manual retrieval.

Any ideas?
 
Check out 'snapshot'

It has a clipboard option to write to Windows Clipboard.
 
From my understanding anytime i need a do a snapshot i would use the print screen button that is present on any windows keyboard and then paste it in a word document, lotus notes message, or outlook.
 
Not neccessarily, what I meant was using the snapshot keyword in an ASPECT script.

From ASPECTS documentation:

Code:
proc main
   integer Id                 ; Task id of NOTEPAD.

   snapshot FILE "scr.txt"    ; Capture screen to file.
   run "notepad scr.txt" Id   ; Run notepad for editing.
   while taskexists Id        ; Pause while Notepad's running.
      yield                   ; Give up processing time
   endwhile
endproc

The above example uses notepad, I'm sure it would be easy (relativly speaking) to modify for any other application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top