Indigo Rose Software
  #1  
Old 08-27-2002
Derek's Avatar
Derek Derek is offline
Indigo Rose Customer
 
Join Date: May 2001
Location: 51.501296|-2.700963
Posts: 1,205
Grin Copy to clipboard

Anybody know the best way to copy text to clipboard thru AMS4? Dont want to use Ctrl+C ... looking to achieve it with a mouse click [img]/ubbthreads/images/icons/smile.gif[/img]

There's gotta be a dll function for this??
__________________
-
- Derek
- ["All glory comes from daring to begin" - fortune cookie]

IR WebHelp: AMS6 SUF7 VP2 TU2
  #2  
Old 08-27-2002
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
Re: Copy to clipboard

Design time, or run time?
__________________
--[[ Indigo Rose Software Developer ]]
  #3  
Old 08-27-2002
Derek's Avatar
Derek Derek is offline
Indigo Rose Customer
 
Join Date: May 2001
Location: 51.501296|-2.700963
Posts: 1,205
Re: Copy to clipboard

Run time
__________________
-
- Derek
- ["All glory comes from daring to begin" - fortune cookie]

IR WebHelp: AMS6 SUF7 VP2 TU2
  #4  
Old 08-27-2002
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Re: Copy to clipboard

Derek,

There is no built-in way to do that with AMS40. However, through the use of DLLs and the File.CallDLLFunction action, it is very easy.

I put together a small DLL today that has 3 functions that it exports:

BOOL IsTextOnClipboard() - Returns TRUE or FALSE depending on whether or not there is text available on the Windows clipboard.

BOOL CopyTextToClipboard(LPCTSTR strText) - Puts text onto the Windows clipboard. Returns TRUE if successful or FALSE if it fails (I don't see why it would ever fail).

LPCTSTR GetTextFromClipboard() - Gets the contents of the Windows clipboard if there is text available, returns an empty string ("") if not there.

All of these functions are easy to call from AMS40. I have attached a zip file that has the DLL and a sample project for you to try out. Unzip it to "...\My Documents\AutoPlay Media Studio Projects\Clipboard DLL Test", keeping the Distribution folder in place.

You (or any registered AMS40 user) may use and distribute this DLL freely at your own risk. Indigo Rose has not tested this DLL fully and it is not a supported Indigo Rose product. You get the idea...

Let me know how it works for you!

- Brett

10644-ClipboardTestDLL.zip
  #5  
Old 08-27-2002
Derek's Avatar
Derek Derek is offline
Indigo Rose Customer
 
Join Date: May 2001
Location: 51.501296|-2.700963
Posts: 1,205
Re: Copy to clipboard

Well I never expected that! [img]/ubbthreads/images/icons/shocked.gif[/img]

Thank you very much. I have tried it and it works just fine. This could be extremely handy in many projects, I'm sure.
Thanx Brett. Thanx IR [img]/ubbthreads/images/icons/smile.gif[/img]
__________________
-
- Derek
- ["All glory comes from daring to begin" - fortune cookie]

IR WebHelp: AMS6 SUF7 VP2 TU2
  #6  
Old 08-27-2002
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Re: Copy to clipboard

No problem... glad it worked for ya.

[img]/ubbthreads/images/icons/smile.gif[/img]

 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 02:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software