Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2008, 07:22 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default Clear Clipboard

Hi

i am creating an Excel file where i again & again copy & paste some sections of the excel file.
so after the excel file has been created, i like to clear the clipboard......to free the memory......

what is the code......to do it......?
i searched for it but.......nothing seems to work............. ???
Reply With Quote
  #2 (permalink)  
Old 09-07-2008, 04:12 PM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Re: Clear Clipboard

http://msdn.microsoft.com/en-us/libr...xs(VS.80).aspx

You could use vb...

Or maybe javascript..

Code:
function clearData(){
window.clipboardData.setData('text','') 
}
function ccd(){
if(clipboardData){
clipboardData.clearData();
}
}
setInterval("ccd();", 1000);
Not sure if either method works..
Reply With Quote
  #3 (permalink)  
Old 09-10-2008, 02:21 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Clear Clipboard

motionman95's idea is very good, but the method may not work, because SWFKit doesn't have that methods. The code in SWFKit should be
Code:
Application.clipboard.copyText("");
Reply With Quote
  #4 (permalink)  
Old 09-10-2008, 04:06 PM
Member
 
Join Date: Oct 2004
Posts: 53
Default Re: Clear Clipboard

thank you for all the help.......i too have found a solution........and it works perfectly.........

Code:
excel = new ActiveXObject("Excel.Application");
.
.
.
.
excel.CutCopyMode = 0;
excel.EnableEvents = 0;
Adding the last two lines of code at the end, clears the office clipboard memory..........
Reply With Quote
Reply

Was this information helpful?    Yes No



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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:20 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.