{{tag>category:"OpenInsight 32-Bit" author:"Bruce Cameron" author:"Kauko Laurinolli"}} [[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]] ==== Print scr button (OpenInsight 32-Bit) ==== === At 09 NOV 2007 04:07:53PM Bruce Cameron wrote: === How would I programmatically simulate a "Print Scr" event? Ideally, in my app, I would have a menu option that when selected would launch the email client, create a new email and fill the body with the image or an attachment. I know how to launch the email and start a new one programmatically but inserting an image? Any one done this? It would be a great support/help desk tool. ---- === At 10 NOV 2007 06:33AM Kauko Laurinolli wrote: === Use program like Hypersnap: OutPutDate=Oconv(DATE(),'DJ4-') OutPutTime=Oconv(TIME(),'MTS')1,2: '.': Oconv(TIME(),'MTS')4,2: '.': Oconv(TIME(),'MTS')7,2 Savefile=OutPutDate: '_': OutPutTime:'.bmp' hwnd=Get_Property(@Window, "HANDLE") showCmd=1 CMD=C:\Program Files\HyperSnap 6\HprSnap6.exe' CMD2= ' -snap:awin -save:bmp ': Savefile rv=ShellExecute(hwnd, "open":\00\, CMD:\00\, CMD2:\00\, "":\00\, showCmd) If rv 42 Then msg('Error ': rv) End ---- === At 10 NOV 2007 02:20PM Bruce Cameron wrote: === Kauko, Excellent response, thank you. I was hoping that there may be someway to simulate with a hidden menu item. In the form menu builder you can assign accelerator keys. There is no "Print Scr" but I was wondering if you could trigger that like the accelerator keys and then have another one that simulated a Ctrl-V into a Word doc and then create an email with that attachment or ideally right into the message body. [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=3FF48F9F116ADB298525738E0074142A|View this thread on the Works forum...]]