|
The way I would probably handle this is just have the user do a print screen. That becomes a spool file. Then you can have a separate program called when the user hits F10 that shows them the list of the screen dumps they have done (spool file with a job name of their current job name, printer of QSYSPRT, user of the current user) then give them the options of sending one of them, or viewing one first. Would seem easiest to me. Your other option involves duplicating what the print screen program does. Another option, write a program with the same name as the print screen program (whatever that is) and stick it up higher in the library list than the real print screen program. Have this program call the print screen program and then get the spool file name/number/job and prompt the user to send this to whomever. Regards, Jim Langston "Stone, Brad V (TC)" wrote: > > Asking for a comrad at work: > > I need to be able to capture the current screen and write it to a PF or > Spooled file. > > Let me explain. > > We have a project where users want a function key to email a screen. I can > email a spooled file with SPL2EMAIL but I need to be able to capture the > current screen. So, when the user hits F10 it captures the screen and > prompts the user for an email address to send the email to. > > I know it's possible because Fax software does this. > > I've tried STRCPYSCRN but that limits me to interactive screen capturing. > > Make sense? > > Thanks! > > Aaron "Tri-Moto" Bartell (via Brad Stone) > +--- > | This is the RPG/400 Mailing List! > | To submit a new message, send your mail to RPG400-L@midrange.com. > | To subscribe to this list send email to RPG400-L-SUB@midrange.com. > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.