Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:17 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Screenshot of the area of the publication.
PostPosted: January 4th, 2009, 5:26 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
Users creates a collage in the publication. Need to click on the button create a screenshot given area, open a standart dialog window "Save As ..." and save picture to your computer as JPG.

Maybe i need to connect any DLL, but I do not know what it is, what parameters and how can capture screenshot area.

Thanks

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: January 5th, 2009, 11:57 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
There are a few possibilities I can think of, but they involve going outside of Opus to paste the object Frame into Irfanview and save there.

As you don't say, I assume your users may be young children and you want everything done inside the Pub, not launch an image viewer.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: January 6th, 2009, 1:31 am 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
I know on the AutoIT (v3) forum (free software) there is a script to create screenshots (maybe with a selectable region). These scripts can be compiled to exe files, and then used from within opus.

Maybe a solution (bit of a workaround, but still)?


Top
 Profile  
 
 Post subject: clipboard saver
PostPosted: January 6th, 2009, 2:26 am 
Offline

Joined: December 29th, 2004, 12:00 pm
Posts: 230
Location: Auckland NZ
Opus: v 7.04
OS: xp & win7
you don't say if this can be on a machine you control or the user's own pc..?
If it is on your own controlled PC you can try this:
download "ClipboardCC v 2.5.1". Google for download source. You configure this so that any items added to the clipboard automatically get saved to a designated folder. This will happen continuously while the app is running. The trial version will watermark your saved image, but the licence is really cheap, like NZ$20 (GBP8).

All your images (must be draggable) should be inserted within one frame, e.g. 'pictureframe'. Presumably you will use show/hide buttons outside the frame to decide which ones will be visible, perhaps use script to set layers...

make a button action to copy object (pictureframe) to clipboard.
voila - you will have a jpeg in the designated folder.
---------------------------------
If it is on the users PC and they are reasonably intelligent then use the same copy to clipboard, open MSpaint.exe (maybe you can launch it) and
get them to CTRL_V. They can then save it themselves

_________________
Opus Pro 7.04 - win10


Top
 Profile  
 
 Post subject:
PostPosted: January 6th, 2009, 8:05 am 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
Thanks to all responded. I realized that the problem has no solution inside Opus. Perhaps the developers of Opus add this useful feature in future versions of the software. I think it is not difficult (function PrintWindow()).

Lar_123, mac, thank you. Share my publications with Irfanview and ClipboardCC is difficult:) I will try to use the DLL that used these softwares. I do not know the extent legally...

Reemski, the brilliant solution, thank you. I used AutoIt 2 years ago. I will need time to study it again. If will be any results, it will inform you.

Good luck and thank you.

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: January 6th, 2009, 11:57 am 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
The code i used is the following:


Code:
   $hPlugin = PluginOpen(@scriptdir & "\captplugin.dll")
   ;capture a region; CaptureRegion("file1.bmp", 0, 0, 200, 100)
   CaptureScreen("screen.jpg", 40)
   PluginClose($hPlugin)


This is a short example but can be used in any way. I would suggest creating a temp file, and then use an save-as box to save the temporary file. The required DLL is attached.

(This is code from someone from the AutoIT forum.)

EDIT: and as i see there is a brilliant capture Reguin function.
parameters for CaptureScreen(filename, jpg quality)
parameters for CaptureRegion are unknown to me. I guess X offset, Y offset, width, height -> but where the quality number is???


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject:
PostPosted: January 6th, 2009, 12:29 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
Thank you, Reemski, now see your new decision.
But I have, in your advise, solved the problem a little bit different way, but also through AutoIt. I did launch EXE file compiled with the AutoIt`s script.

Code:
#include <ScreenCapture.au3>

$scc = _ScreenCapture_Capture('', 0, 0, -1, -1, True)
$out = FileSaveDialog('Save screenshot', '', '(*.jpg)',1+2,'screenshot.jpg')
_ScreenCapture_SaveImage($out, $scc)


Everything works fine.

Capture all screen and in parameters need only set the coordinates.
Opus with the AutoIt acquires enormous power:)

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: January 6th, 2009, 5:31 pm 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
Great post! Just what I was looking for. It would be good if this feature was built in.


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 50 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group