Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Embedded/Extract Image Object
PostPosted: September 8th, 2011, 11:27 am 
Offline

Joined: June 9th, 2007, 10:53 am
Posts: 34
Location: UK
Opus: Opus Pro 8.0
OS: Windows XP Pro SP3
System: Acer Intel Core 2 Quad, 2.4GHz, 3 MB RAM
Hi All, I am wondering if there is anyway to OpusScript (or anyother way) to extract an image object from a running publication (which has over 100 screens with images) so available to another application so can then bluetooth the image to a users mobile phone (bluetooth enabled). I want to be able to have a button saying "Send To BlueTooth" and when pressed extract an image object from the current page to a temporary holding location and then use my bluetooth application to search for local bluetooth devices and send the holding image to the users bluetooth device using class 3 which only sends to devices within 1 meter. Hope that makes sense and hope someone can help. I just really need to extract an object image from the publication on demand. Many thanks.


Top
 Profile  
 
 Post subject: Re: Embedded/Extract Image Object
PostPosted: September 8th, 2011, 11:44 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
You can use the copy object to clipboard action.


Then you just need a DLL or script that will save it to a file unless your BT application can paste?

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Embedded/Extract Image Object
PostPosted: September 8th, 2011, 11:54 am 
Offline

Joined: June 9th, 2007, 10:53 am
Posts: 34
Location: UK
Opus: Opus Pro 8.0
OS: Windows XP Pro SP3
System: Acer Intel Core 2 Quad, 2.4GHz, 3 MB RAM
Hi Godlike, Wow thanks for a quick reply. But (lol) do you know of any DLL or script which I could use? Many thanks again for yout time and help. Regards


Top
 Profile  
 
 Post subject: Re: Embedded/Extract Image Object
PostPosted: September 8th, 2011, 12:16 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Not a problem.

Depends whether you need a professional or personal solution. If it's the latter, then AutoIT should probably allow you to create something. If it's the former then have a look around the net as there are solutions to this and it's also quite easy to write.

I think I recall a previous discussion on it if you search the forum.

Mack

BTW godlike = status not name :-)

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Embedded/Extract Image Object
PostPosted: September 8th, 2011, 12:24 pm 
Offline

Joined: June 9th, 2007, 10:53 am
Posts: 34
Location: UK
Opus: Opus Pro 8.0
OS: Windows XP Pro SP3
System: Acer Intel Core 2 Quad, 2.4GHz, 3 MB RAM
Thanks mackavi - quite new to this so my apologies. Thanks for the tips and I will look at AutoIt and see what I can do. Shame there is not a windows command like write_clipboard c:\myimage.png but nothing ever simple lol. Many thanks


Top
 Profile  
 
 Post subject: Re: Embedded/Extract Image Object
PostPosted: September 9th, 2011, 1:07 am 
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
Quote:
I want to be able to have a button saying "Send To BlueTooth" and when pressed extract an image object from the current page to a temporary holding location and then use my bluetooth application to search for local bluetooth devices and send the holding image to the users bluetooth device

AJ,
When you say "then use my bluetooth application to search for local bluetooth devices...", do you mean the User will make choices in the Bluetooth driver/app pop-up window --- or do you mean automate those steps inside Opus?

As for the first part ("...extract image from current page"), you can have a User click on an image and trigger standard Action in Opus to "Copy File". For example, selecting Image05 would copy the source file to C:\\temp\\TransferFileXX.jpg (and use the Overwrite option). Later, someone chooses Image 12, it gets copied to and overwrites file of same name: TransferFileXX.jpg

So that can be useful (a way to refer to a single File, and not have to pass filename parameter) -- if you will use a .BAT file, some Windows scripting, or other utility.

(of course, you could just use an Opus variable to tell the Image Object which path and filename to use to display an image -- and then you have that value you can pass to your Windows/VBS script. This assumes you figure out how to use Command Line and parameters to tell Bluetooth utility which file to send).
Code:
//In OpusScript, for an Image object that you want to display photo depending on user selection:
Image00.SetImage(ImagePath)   //where ImagePath variable specifies the file to use

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


Top
 Profile  
 
 Post subject: Re: Embedded/Extract Image Object
PostPosted: September 9th, 2011, 9:21 am 
Offline

Joined: June 9th, 2007, 10:53 am
Posts: 34
Location: UK
Opus: Opus Pro 8.0
OS: Windows XP Pro SP3
System: Acer Intel Core 2 Quad, 2.4GHz, 3 MB RAM
Hi Lar_123, thanks for your suggestions and really appreciated. I have managed to come up with a solution by writing a little hidden application which is run when my button is pressed and runs off the screen. It looks at the screen res and the size of the publication and does a little maths with where the image is on the screen as always in the same place, it grabs the pre-determined rectangle area and saves it as a .jpg. From there, it goes to another screen asking the user to make sure his/her mobile phone is on and bluetooth enabled and press here to continue. This in turn calls my other little hidden application off screen which searches for 5-10 seconds for any bluetooth devices (using class 3 which only has a range of 1 meter) for class type of Smartphone (basically only the users as the bluetooth only has 1 meter range and they in front of kiosk) and when accepted by the user on the mobile to accept it downloads the image file to the mobile phone and deletes the .jpg. Maybe this will give others some other ideas. Once again thankyou to all for the help and suggestions as it did help to come up with a solution. Regards Anthony.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 44 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