.INI object file help

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Sure,
    in an event, set it to "Set current File" and enter the folder where you want to store it.


    When you select the Help file for the ini object, you can find all the options that are possible.

    Under the "INI Object - Actions"

    Set current file
    Sets the file that the INI object will save and retrieve data from. The same remark than the one made in the property page is valid: to create an INI file in a specific directory, you have to indicate the full pathname as a parameter.

  • Sure,
    in an event, set it to "Set current File" and enter the folder where you want to store it.


    When you select the Help file for the ini object, you can find all the options that are possible.

    Under the "INI Object - Actions"

    Set current file
    Sets the file that the INI object will save and retrieve data from. The same remark than the one made in the property page is valid: to create an INI file in a specific directory, you have to indicate the full pathname as a parameter.

    I dont get it
    im still not sure.

  • Enter the path to where you want to save it. If you want to save it where the application is stored use this command.
    "Set Current File" -- Apppath$ + "Save"

    Please login to see this attachment.

  • Enter the path to where you want to save it. If you want to save it where the application is stored use this command.
    "Set Current File" -- Apppath$ + "Save"

    Please login to see this attachment.

    i want to move it to the desktop would it be === desktop$ + "Save" ===?
    because it is just naming the file as "desktop$Save".

  • Please stop creating new threads about this.
    you cannot just use " === desktop$ + "Save" ===?"

    If you look in the help file you will see this


    File attributes

    Size of a file retrieves the size of a file.
    Creation date retrieves the date that a file was created.
    Modification date retrieves the date that a file was modified.
    Last access date retrieves the last access date of a file as a numerical value, the units being Bytes.
    Names

    Drive name retrieves only the drive letter from the complete file path.
    Directory name retrieves only the directory name from the complete file path.
    Short filename retrieves only the short filename from either the total filename or the complete file path. For example, Dave.TXT would be retrieved as Dave, without the file extension, and E:\Mydocs\work\Erica.TXT would be retrieved as Erica.
    Extension name retrieves only the file extension of either the file name or the complete file path. For example, Dave.TXT would be retrieved as .TXT, without the filename, and E:\Mydocs\work\Erica.TXT would be retrieved as .TXT.
    Total pathway of a file retrieves the complete file path currently set in the File object.
    Temporary filename creates a file in the Windows temporary directory and retrieves its name. The function uses the first 3 characters of the parameter string as the prefix of the filename.
    File version

    Most significant number retrieves the most significant file version number of a file as a numerical value.
    Least significant number retrieves the least significant file version number of a file as a numerical value.
    Directories

    Current directory retrieves the directory that the File object is currently set to.
    Windows directory retrieves the directory from which the current version of Windows is running. On most systems where Windows is installed to the C drive, this function returns "c:\Windows".
    System directory retrieves the system directory from which the current version of Windows is running. This directory is the System sub-directory on Windows 9x machines and the System32 directory on Windows NT and Windows XP machines.
    My Documents directory retrieves the My Documents directory.
    Application Data directory retrieves the Application Data directory of the current user. Typically C:\Windows\Application Data under Windows 9x, or C:\Documents and Settings\User_Name\Application Data under Windows 2000/XP.
    User directory retrieves the current user directory. Typically C:\Windows under Windows 9x, or C:\Documents and Settings\User_Name under Windows 2000/XP).
    All Users directory retrieves the All Users directory. Typically C:\Windows under Windows 9x, or C:\Documents and Settings\All Users under Windows 2000/XP). Note: since the build 245 of Clickteam Fusion 2.5 you should not use this expression. Use the All Users Documents Directory and/or All Users Application Data Directory expressions instead.
    All Users Documents directory retrieves the Documents directory shared by all the users.
    All Users Application Data directory retrieves the Application Data directory shared by all the users.
    Get CD-ROM Drive Directory from Label: this function compares the volume label of all the CD-ROMs present in the CD-ROM drives of the machine with a given string. If the volume label matches the string, the function returns the root directory of the CD-ROM drive. If no CD-ROM has the given label, the function returns an empty string.
    File Selector

    Get Result Pathname retrieves the name of the file selected by the user in single selection mode.
    Get selected filter retrieves the 1-based index of the selected filter.
    Multi Selection
    Get Number of Pathnames retrieves the number of selected files in multi-selection mode.
    Get pathname at retrieves the pathname of a selected file (parameter = index in the list of selected files).
    Allow Directory Change : if this style is selected (see Set Style action), the current directory is modified to the directory of the selected file.
    Allow non existent file : if this style is selected (see Set Style action), the user can enter the name of a file that does not exist.
    Allow non existent path : if this style is selected (see Set Style action), the user can enter a file path that does not exist.
    Allow create file prompt : if this style is selected (see Set Style action), the user will be prompted if the file does not exist (Save Selector).
    No overwrite prompt : if this style is selected (see Set Style action), no message will be issued if the file already exists (Save Selector).
    Last Error Code
    The Last Error Code function retrieves the last error code from the File object. The main error codes are:

    Error 2 = No such file or directory
    Error 13 = Permission denied
    Error 17 = File exists
    Error 18 = An attempt was made to move a file to a different device (using the rename function)
    Error 22 = Invalid argument
    Error 24 = Too many open files
    Error 28 = No space left on device (e.g. disk full)
    Error 41 = Given path is not a directory, or directory is not empty, or directory is either current working directory or root directory


    you will see

    User directory retrieves the current user directory. Typically C:\Windows under Windows 9x, or C:\Documents and Settings\User_Name under Windows 2000/XP).

    so you need to combine a few things and you get the desktop
    i.e. User directory + "\Desktop\"

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!