The Daily Click ::. Forums ::. Klik Coding Help ::. External Pictures in TGF
 

Post Reply  Post Oekaki 
 

Posted By Message

Matt Mallas (Flying Apemonkey Software)



Registered
  20/08/2002
Points
  545
26th January, 2005 at 20:57:55 -

I'm trying to create a program that loads a picture that is named in an INI file. Is there any way to do this in TGF with any extensions or other methods? I tried using the multimedia picture object, but this only lets me load a specifically named file, not one that is named as a string. If this is not possible in TGF, can it be done in MMF?

 
n/a

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!
26th January, 2005 at 22:25:43 -

I know for a fact that it's possible in MMF, because I made a program for displaying the school yearbook from data in an external CSV file. I don't recall exactly how I did it though. If I can find the source later on I'll have a quick look.

 
n/a

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
26th January, 2005 at 23:42:33 -

I'm not sure about TGF, but in MMF you can use the Active Picture object. Example:
Event --> (Active Picture object) New Picture (the file's path).
To access it where you can type in the path (or use Appdrive$ + Appdir$), click on the "Expression" on the dialog box.

 
http://www.klik-me.com

pickleman22



Registered
  06/12/2004
Points
  154
27th January, 2005 at 06:44:56 -

man, I really need MMF....

 
Ze Pickle's projects:
Not working on any right now. Aw, man.

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
27th January, 2005 at 06:46:24 -

Hehe. There's a demo, you know...

 
Old member (~2004-2007).

pickleman22



Registered
  06/12/2004
Points
  154
27th January, 2005 at 06:53:20 -

yeah, but in the TGF demo you cant save stand-alone apps, so in MMF probly won't be able too either... and anyway I would need more than 30 days to learn how to use that thing, more like a few years lol

 
Ze Pickle's projects:
Not working on any right now. Aw, man.

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
27th January, 2005 at 07:19:38 -

I learnt enough to know I wanted to use it in about 2 weeks when I moved up from TGF to MMF.

They have quite different interfaces, but it all works the same way. The event editor looks practically identical, for example.

 
191 / 9999 * 7 + 191 * 7

Matt Mallas (Flying Apemonkey Software)



Registered
  20/08/2002
Points
  545
27th January, 2005 at 12:59:13 -

Okay, so MMF can do what I want it to do with pictures -- can it also do a similar thing with running external programs, determining which program to run based on a string?

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
27th January, 2005 at 13:06:33 -

with the mmf demo you get a lot more than 30 days, but you can't save stand alone programs otherwise it would basically be the full version.

and i dont think anyone has ever tried to do what you ask in tgf but i can't see why it would not work since ini files are the same for both tgf and mmf and tgf can definatley open pictures because hayo did it in fishead 2

 
.

Matt Mallas (Flying Apemonkey Software)



Registered
  20/08/2002
Points
  545
27th January, 2005 at 13:24:45 -

Well, maybe I didn't explain myself well enough. I will have many pictures saved into a directory, and I want one of these to be displayed. Now, I COULD go and set up an event for every single file in this directory, but that's a lot more work than I want to do, and plus new pictures added to this directory would not be included. TGF only allows you to select a specific file or have the user select one -- I want the file to be chosen based on a string containing the name of the file to be displayed. I downloaded the MMF demo and I'm trying to see if it can do what I'm trying to, because I don't think that there's any way of getting it to work in TGF.

EDIT: Okay, I figured out that MMF can do what I want it to do by basing which file to load on an expression. Unfortunately, it seems that the same thing is not possible to do with running an external application. Does anybody know of a way to do this?

EDIT (Again): So after fooling around with MMF for a while, I found that the File object can accomplish what I need it to do. Now I just have to convince myself to fork over 100 dollars for MMF...

Image Edited by the Author.

 
n/a

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!
27th January, 2005 at 16:22:01 -

You can write the source in the demo, then send it to one of us to build the stand-alone app. There's plenty of people happy enough to help with that sort of thing.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click