Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2007
    Posts
    2

    Creating a text document on the desktop

    Hi everyone,

    I am a rookie here, this is the second time I have worked with APMS in 2 years. I have been asked by my employer to create an app for our field technicians to use when working on various computers. I need to make a button to add a text file to the desktop for documentation purposes. This all sounds simple to right click the desktop and knock out the .txt, but I did spend 30 minutes the other week walking a tech through that process. I have to make things stupid simple for our guys or else they mess everything up.

    Here is the following code that I have been trying to use with no progress.

    TextFile.WriteFromString("%Desktop%\\service_histo ry.txt", "Hello, world.", false);

    Thanks in advance

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    TextFile.WriteFromString(_DesktopFolder.."\\servic e_histo ry.txt", "Hello, world.", false);
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    May 2007
    Posts
    2
    Bule,

    thanks a lot, worked like a charm. You wouldn't happen to know of any sites covering basic lua scripting.

    Thanks again,

    Ty

  4. #4
    Join Date
    May 2005
    Posts
    1,115
    Well, _DesktopFolder is not a default Lua variable, it's APMS feature (variable set by a runtime).

    Nevertheless, try this link:
    http://www.lua.org/manual/5.0/
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. Rich Text Document Object in AMPS
    By bule in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 09-10-2006, 10:40 AM
  2. 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
  3. Sending data from ams5 project to a document other than text file?
    By jcobb in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 10-22-2004, 07:52 AM
  4. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM
  5. Creating Shortcut Keys for Desktop Icons.
    By casman in forum Setup Factory 6.0
    Replies: 2
    Last Post: 06-12-2002, 05:34 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