Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Posts
    4

    Grin dialog.message and file.copy help

    I've been using the 'dialog.message' feature to generate messages however long messages seem to spread right across the screen. Is there any way to split the messages into several lines and to control how/where they are split.

    Also when using the 'file.copy' script how do I specify to copy to the desktop. Do I really need to specify the full path C:\Documents and settings...Desktop?? Is there a neater way of choosing the desktop as the destination. I ask 'cos I notice that the 'Shell.CreateShortcut' script has a tidy way of installing shortcuts to the desktop. However I would prefer to install the files to the desktop rather than create a shortcut.

    Thanks in advance.

  2. #2
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    Hi and welcome to the forums.

    I've been using the 'dialog.message' feature to generate messages however long messages seem to spread right across the screen. Is there any way to split the messages into several lines and to control how/where they are split.
    To do this, you can use variations of the following two escape sequences:

    \n - newline
    \r - carriage return

    For example, if you wanted to display the following dialog message on two lines:

    Code:
    result = Dialog.Message("Notice", "The quick brown fox jumped over the lazy dog.  It was certainly a sight to see.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    It would be changed like this:

    Code:
    result = Dialog.Message("Notice", "The quick brown fox jumped over the lazy dog.\r\nIt was certainly a sight to see.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    If you wanted to add an extra line in between both sentences, the code would be:

    Code:
    result = Dialog.Message("Notice", "The quick brown fox jumped over the lazy dog.\r\n\nIt was certainly a sight to see.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    Also when using the 'file.copy' script how do I specify to copy to the desktop. Do I really need to specify the full path C:\Documents and settings...Desktop?? Is there a neater way of choosing the desktop as the destination. I ask 'cos I notice that the 'Shell.CreateShortcut' script has a tidy way of installing shortcuts to the desktop. However I would prefer to install the files to the desktop rather than create a shortcut.
    There is an action called Shell.GetFolder that will get the path to the folder on the users system. For some, it might be on one drive and for others it could be on a different drive. For this reason, using C:\Documents and settings\User\Desktop will not always work. Instead, try this code:

    Code:
    result2 = Shell.GetFolder(SHF_DESKTOP);
    This will return the path to the users desktop folder. For the 'All Users' profile, use this code:

    Code:
    result2 = Shell.GetFolder(SHF_DESKTOP_COMMON);
    I hope this helps.

  3. #3
    Join Date
    Aug 2006
    Posts
    4

    Peekaboo! Thanks

    Tek,
    Thanks for quick response. have implemented your suggestions and it's working great. Thanks again.

Similar Threads

  1. File.copy
    By vdillum in forum Setup Factory 7.0
    Replies: 7
    Last Post: 07-05-2006, 09:19 AM
  2. File.Copy and progress Object
    By auplaza in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 11-29-2005, 09:26 AM
  3. Help with Callback and File.Copy
    By Mattyc_92 in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 07-25-2005, 11:54 AM
  4. File.Copy does not work as advertised
    By tkilshaw in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-17-2005, 11:51 PM
  5. File.Copy Destination Question?
    By scara in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 04-25-2005, 05:43 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