Indigo Rose Software
  #1  
Old 12-04-2007
John Fletcher John Fletcher is offline
Forum Member
 
Join Date: Aug 2007
Posts: 84
Important Question?

Hello all,

Hope you can help!

Can Autoplay run a Javascript from within itself while it is running itself?

The javascript is as follows:

<script type="text/javascript" language="javascript">
<!--
function do_err()
{
return true
}
onerror=do_err;
function no_cp()
{
clipboardData.clearData();setTimeout("no_cp()",100 )
}
no_cp();
//-->
</script>

This code provents the possibility of Print Screen functionality... yet when I looked into the AMS help files of the program - there is no discussion about running javascript from within the AMS project itself...

Or, do I need to launch a webpage with this javascript in the html and then somehow have the webpage minimize so it cannot be seen while the AMS application is running....


Any help would be appreciated... This is rather urgent!!!

Best Regards,

John
Reply With Quote
  #2  
Old 12-04-2007
srussell's Avatar
srussell srussell is offline
Indigo Rose Customer
 
Join Date: Sep 2005
Location: Arizona
Posts: 77
John, try this...

- Create an emtpy input box and make it hidden
- Create a function that uses Input.Copy, specificying the name of your new hidden input object
- Use a timer to periodically call the function... the Windows Clipboard should be empty
- you can also call the function from any other action in your project to erase the clipboard.
Reply With Quote
  #3  
Old 12-04-2007
John Fletcher John Fletcher is offline
Forum Member
 
Join Date: Aug 2007
Posts: 84
Important Question!

SRussell,

Excellent... I will look into doing this... so as I do not make an error... are there any examples available that you know of?

I hope this works!

Best Regards,

John
Reply With Quote
  #4  
Old 12-04-2007
John Fletcher John Fletcher is offline
Forum Member
 
Join Date: Aug 2007
Posts: 84
Is this correct?

SRussell,

Is this correct... I am very new to this!

Input.Copy("Input1");
Page.StartTimer(5000) --fires On Timer actions once every 5 seconds
Input.Cut (string "Input1")


John
Reply With Quote
  #5  
Old 12-04-2007
srussell's Avatar
srussell srussell is offline
Indigo Rose Customer
 
Join Date: Sep 2005
Location: Arizona
Posts: 77
Erase The Clipboard

Here's some sample code you can use that will erase the Windows Clipboard by copying a blank hiddden input object once every five seconds. Look at the global function "EraseClipboard" and the OnShow and OnTimer events for the page.

Change the timer duration to something less ( i.e. 1000) if you want to erase it more frequently.

I've tried this as a solution to prevent users from copying the contents of an unprotected PDF to the Windows Clipboard. It's not flawless, but it's pretty annoying if you keep trying to copy/paste a doc and nothing shows up.
Attached Files
File Type: apz EraseClipboard.apz (9.5 KB, 21 views)

Last edited by srussell; 12-04-2007 at 09:30 PM.
Reply With Quote
  #6  
Old 12-04-2007
srussell's Avatar
srussell srussell is offline
Indigo Rose Customer
 
Join Date: Sep 2005
Location: Arizona
Posts: 77
One minor alteration...
It appears the input can't be left in order to set a text selection. Just insert a period or other single character in the invisible field, then set the input field selection.

Modifiy project attached.
Attached Files
File Type: apz EraseClipboard.apz (9.5 KB, 24 views)
Reply With Quote
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Volume Question! Brutus AutoPlay Media Studio 6.0 4 06-25-2007 11:00 AM
Test Drive Question jrthom1 Setup Factory 7.0 Discussion 3 05-17-2007 02:45 PM
Math.RandomSeed() question stickck AutoPlay Media Studio 6.0 8 06-09-2006 10:42 AM
Question: reg question mjheijster AutoPlay Media Studio 5.0 3 07-22-2005 05:01 AM
Basic Flash question aae991 AutoPlay Media Studio 5.0 2 03-09-2005 10:46 PM


All times are GMT -6. The time now is 02:25 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