The Daily Click ::. Forums ::. Klik Coding Help ::. Asociate files with a program?
 

Post Reply  Post Oekaki 
 

Posted By Message

DELETED!_by account owner



Registered
  04/03/2006
Points
  1155
16th July, 2006 at 01:05:05 -

Ok i have a program made in MMF. And when the user double clicks a file i want this program to automatically open it.

I can get the actual exe to run but thats it.

Any example files?

 
n/a

Arneckian



Registered
  17/01/2005
Points
  984
16th July, 2006 at 04:52:59 -

I dont have an example but I can tell u.

Ok, you do this first, then you do that, then you put that there, and this here, and you finish of by pressing that button.

 
Phizzy is God. Mod him.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
16th July, 2006 at 07:16:48 -

Associations are stored under HKCR\ and HKLM\softtware\classes\. I'm sure there must be an extension for messing with the registry, just make sure you know what you're doing. Actually I think I have a vague memory of an extension that could make associations, but I could be imagining that. Search the CT forums maybe.

Once the association is done, clicking on a file should pass its name and path to your app in the command line, so use the special object to retrieve that and you're set.

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
16th July, 2006 at 17:33:14 -

Or you could do it the standard way, which is right click on the file, "open With..." and choose your program.

But that only works for your comp, obviously.

 
Craps, I'm an old man!

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
17th July, 2006 at 00:31:13 -

You could work on discovering (research) how the 'open with...' effects the system/registry. Then using the Registry Object for MMF, you could repeat the same thing, only based more spacificly on your application.

 
http://www.facebook.com/truediamondgame

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
17th July, 2006 at 00:50:59 -

You could work on discovering (research) how the 'open with...' effects the system/registry.
I just fucking said what it does. Look under HKCR\ and HKLM\software\classes\.

 
n/a

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
17th July, 2006 at 06:29:08 -

Also using Commandline$, you can get the filename of the file that has been opened using this.

(it will come out as ""C:\program.exe" "C:\filename.???"" when done right)

 
a/n

ben mercer

Possibly Insane

Registered
  11/07/2004
Points
  2538
17th July, 2006 at 06:30:51 -

I think the browser or file object have a 'open file directly' action.

 
Stuckboy

JC Denton: "I know your UNATCO killphrase: Laputan Machine."
Gunther Hermann: "I - am - not - a - machi --"
JC Denton: "Sticks and stones..."

Werbad



Registered
  18/09/2002
Points
  235
17th July, 2006 at 11:23:05 -

According to his post he has already managed to make the file associated with his program, and he wants to know how to get what file was opened... right?

 
n/a
   

Post Reply



 



Advertisement

Worth A Click