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

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.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/3ff48f9f116adb298525738e0074142a.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1