Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2007
    Posts
    172

    Grin write to text file and run ???

    i want to write data to text file and then run the text file... how can i do it ???

    Code:
    links = WebBrowserExtension.GetLinks();
    for i, v in links do
    	--how to write links to txt file ???
    end

  2. #2
    Join Date
    Jan 2006
    Posts
    31
    Hi,

    Do you mean something like that ?
    Attached Files

  3. #3
    Join Date
    Mar 2007
    Posts
    172
    thanks but not what i want !!! what i want is;
    get links from the page and save it to txt file and run the text file...

    something like that but this doesnt work...
    Code:
    links = WebBrowserExtension.GetLinks();
    TextFile.WriteFromString("AutoPlay\\Docs\\links.txt", links, true)
    File.Run("AutoPlay\\Docs\\links.txt", "", "", SW_SHOWNORMAL, false);

  4. #4
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by ButtonMaker View Post
    thanks but not what i want !!! what i want is;
    get links from the page and save it to txt file and run the text file...

    something like that but this doesnt work...
    Code:
    links = WebBrowserExtension.GetLinks();
    TextFile.WriteFromString("AutoPlay\\Docs\\links.txt", links, true)
    File.Run("AutoPlay\\Docs\\links.txt", "", "", SW_SHOWNORMAL, false);
    File.Run is for executable files, try to use File.Open
    Code:
    File.Open("AutoPlay\\Docs\\links.txt", "", SW_SHOWNORMAL);
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  5. #5
    Join Date
    Mar 2007
    Posts
    172

    Grin

    it doesnt write data to txt file !!!

    Code:
    links = WebBrowserExtension.GetLinks();
    for i, v in links do
    	TextFile.WriteFromString("AutoPlay\\Docs\\links.txt", v, true)
    end
    File.Open("AutoPlay\\Docs\\links.txt", "", SW_SHOWNORMAL);

  6. #6
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Try to check tbl links for being empty... perhaps it doesn't contain anything so the for loop won't do anything.

    Code:
    links = WebBrowserExtension.GetLinks();
    if(links)then
        for i, v in links do
    	    TextFile.WriteFromString("AutoPlay\\Docs\\links.txt", v, true)
        end
    else
        Dialog.Message("Error", "No links retrieved");
    end
    File.Open("AutoPlay\\Docs\\links.txt", "", SW_SHOWNORMAL);
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  7. #7
    Join Date
    Mar 2007
    Posts
    172
    thanks C B programming and webdesign

    but is it possible to r/n/ after everylink in txt file ???

    example txt file :
    Code:
    www.google.com
    www.msn.com
    www.yahoo.com

  8. #8
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by ButtonMaker View Post
    thanks C B programming and webdesign

    but is it possible to r/n/ after everylink in txt file ???

    example txt file :
    Code:
    www.google.com
    www.msn.com
    www.yahoo.com
    Sure, just add the red part
    Code:
    links = WebBrowserExtension.GetLinks();
    if(links)then
        for i, v in links do
    	    TextFile.WriteFromString("AutoPlay\\Docs\\links.txt", v.."\r\n", true)
        end
    else
        Dialog.Message("Error", "No links retrieved");
    end
    File.Open("AutoPlay\\Docs\\links.txt", "", SW_SHOWNORMAL);
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

Similar Threads

  1. Batch file to run on Before Install screens
    By kk250040 in forum Setup Factory 7.0
    Replies: 1
    Last Post: 01-07-2009, 02:35 AM
  2. file run on cd problem
    By jenny62 in forum Setup Factory 7.0
    Replies: 5
    Last Post: 01-11-2006, 12:01 PM
  3. Example: Loading Paragraph Text Using a Timer
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 7
    Last Post: 11-25-2004, 05:10 PM
  4. HOWTO: "Hide" Externally Referenced Files
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 03:19 PM
  5. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM

Posting Permissions

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