FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Help - SendStringUsingCopyData usage

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
alif98
Newbie


Joined: 24 Mar 2008
Posts: 1

PostPosted: Mon Mar 24, 2008 7:05 pm    Post subject: Help - SendStringUsingCopyData usage Reply with quote

Hi all,

I am making a script to control KMPlayer (an audio/video player from Korea). I am having ptoblem when I am using function SendStringUsingCopyData. One of the feature is that I can browse my computer from mobile phone and add some files to playlist.

However, I always get an error everytime hence it skipped the following script. Below is part of my script. I hope it is clear enough.

TIA

[code:1]function browser_ValueUpdated(browser, property)
{
var path = browser.itemLabels[browser.selectedItem] + "\\";

var newPath = fso.BuildPath( browsePath, path );
newPath = fso.GetAbsolutePathName( newPath );
if( newPath == browsePath ) {
newPath = "";
}

if( fso.FileExists( newPath ) ) {
// Selected a file, Add to playlist
try
{
var kmp = FindWindow(ProgID, "" );
if( kmp == 0 ) throw "null player";
SendStringUsingCopyData(kmp,100,String(newPath)) // Add to playlist
ShowMessage("OK") // Never reach this part since it's always error.
} finally {
theTerminal.PopTo("KMPlayer");
}
} else {
// Selected a folder
browsePath = newPath;
browser.itemLabels = getFolderItems();
browser.selectedItem = 0;
return true;
}
}[/code:1]
Back to top
View user's profile Send private message
thechronicles
Newbie


Joined: 16 Aug 2008
Posts: 7

PostPosted: Mon Aug 18, 2008 10:25 pm    Post subject: Reply with quote

Sorry that I can't help you. but don't give Up!
:D
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group