Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5

Thread: im stuck :)

  1. #1
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420

    im stuck :)

    Hi can anyone tell me why this bit of code wont work?
    Code:
    local SellectedGif = {};
    local tDest        = "";
    
    tDest        = _SourceFolder.."AutoPlay\\WorkingFolder\\";
    tDest        = tDest.."a.gif";
    
    SellectedGif = Dialog.FileBrowse(true, "Locate the .Gif File", _DesktopFolder, "All Files (*.*)|*.*|", "", "gif", false, false);
    if SellectedGif[1]~="" and SellectedGif[1]~=IDCANCEL then 
       SourceGif = SellectedGif[1];
       File.Copy(SourceGif, tDest, true, true, false, true, nil); 
       if File.DoesExist(tDest) then
          Label.SetVisible("gifOK", true); 
          Input.SetText("Input1",String.SplitPath(SourceGif).Filename..String.SplitPath(SourceGif).Extension);
          end
       end
    its a simple copy function but i cant seem to get it to run

  2. #2
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    All its doing is getting the user to sellect a gif and then copy it to Autoplay\\WorkingFolder then check to see it it copied ok.As far as i can tell its down to the copy process. Ive put all sort of checks in and it seems to be building to paths to the files OK but nothing is getting copied.
    Last edited by clueless; 08-03-2006 at 04:29 AM.

  3. #3
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    Here are a couple minor edits. Do you know how far it is getting? If not, try running the debug console... it can be a big help.

    Code:
    local SellectedGif = {};
    local tDest        = "";
    
    tDest        = _SourceFolder.."\\AutoPlay\\WorkingFolder\\";
    tDest        = tDest.."a.gif";
    
    SellectedGif = Dialog.FileBrowse(true, "Locate the .Gif File", _DesktopFolder, "All Files (*.*)|*.*|", "", "gif", false, false);
    if SellectedGif[1]~="" and SellectedGif[1]~="CANCEL" then 
       SourceGif = SellectedGif[1];
       File.Copy(SourceGif, tDest, true, true, false, true, nil); 
       if File.DoesExist(tDest) then
          Label.SetVisible("gifOK", true); 
          Input.SetText("Input1",String.SplitPath(SourceGif).Filename..String.SplitPath(SourceGif).Extension);
          end
       end
    end
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  4. #4
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    hey nice one . That was driving me crazy

  5. #5
    Join Date
    Dec 2003
    Posts
    891
    change this
    Code:
    tDest        = _SourceFolder.."AutoPlay\\WorkingFolder\\";
    to this
    Code:
    tDest        = _SourceFolder.."\\AutoPlay\\WorkingFolder\\";
    (change is in red)

Similar Threads

  1. Stuck with the code (2)
    By Cummins in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 07-25-2006, 08:39 AM
  2. Stuck in XML
    By playmenow in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 03-17-2006, 01:03 PM
  3. Jump to seems to be stuck
    By jives in forum AutoPlay Media Studio 5.0
    Replies: 11
    Last Post: 03-28-2005, 02:14 PM
  4. Stuck on the easiest thing
    By CtrlAltDel in forum AutoPlay Media Studio 5.0
    Replies: 9
    Last Post: 02-20-2004, 03:54 PM
  5. I'm really stuck
    By JohnA in forum Setup Factory 6.0
    Replies: 3
    Last Post: 09-03-2003, 12:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts