Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2005
    Posts
    572

    my own extention for files create using my app

    is it possible to make windows automatically set an icon for a certain file extention which was created using my application And make my application the default program for these file types but i wont to tale to the program where is the file?
    if i click the file in "c:\windows\file.exe" i wish to change the lable to "c:\windows\file.exe" can it's possibly?

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    deya vu anyone?
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Dermot

    I am so out of here

  4. #4
    Join Date
    Oct 2005
    Posts
    572

    i know how to do this. i dont no this

    i wont to tale to the program where is the file?
    if i click the file in "c:\windows\file.exe" i wish to change the lable to "c:\windows\file.exe" can it's possibly?
    if i click on *.doc the "winword" open the doc and you see the file but in you link you can click the file then the program automatic open but the file how i know wer is the file if i wont to work whit the file i clicked?

  5. #5
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    if i click the file in "c:\windows\file.exe" i wish to change the lable to "c:\windows\file.exe" can it's possibly?
    You lost me there.

    if i click on *.doc the "winword" open the doc and you see the file but in you link you can click the file then the program automatic open but the file how i know wer is the file if i wont to work whit the file i clicked?
    Once you have set the association, when you double-click the file, it's name and full path are passed to your app as _CommandLineArgs. This means you can grab the name of the file when you app starts up and do what ever you want with it.

    Lets say your app was a text editor. You could use the following to load the text file that was double-clicked, into an input object

    Put this in the OnLoad event of a page.
    Code:
    if _CommandLineArgs[1] then
    
    	if String.Left(_CommandLineArgs[1], 3) ~= "SFX" then
    	
    		YourFile = _CommandLineArgs[1]
    		
    		sText = TextFile.ReadToString(YourFile)
    		
    		Input.SetEnabled("input1", sText)
    				
    	end
    end
    Dermot

    I am so out of here

  6. #6
    Join Date
    Oct 2005
    Posts
    572

    Smile i dont anderstend the code but its work very good thens

    i dont anderstend the code but its work very good thens

Similar Threads

  1. Trying to create a basic Install App - Help Please
    By mmtsca in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 11-17-2006, 01:32 AM
  2. how can i create a folder in the same folder of the app?
    By shanhai in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 06-14-2005, 09:34 AM
  3. Create temp file when app opens
    By ianhull in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 01-11-2005, 08:24 AM
  4. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  5. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 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