Author Topic: Open A Software Using Another Software?  (Read 2691 times)

Jeff

  • Newbie
  • *
  • Posts: 33
Open A Software Using Another Software?
« on: February 11, 2011, 04:15:21 AM »
Okay I have two questions:

1. How do I open my software using my other software by clicking on a button in the same card?

2. How do I open another software (which I didn't create) from my software by clicking on a button in the same card?

Try to do this but did not get the logic right.

Thanks
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 403
  • Here to help you
Re: Open A Software Using Another Software?
« Reply #1 on: February 12, 2011, 12:50:36 PM »
Quote from: Jeff
Okay I have two questions:

1. How do I open my software using my other software by clicking on a button in the same card?

2. How do I open another software (which I didn't create) from my software by clicking on a button in the same card?

Try to do this but did not get the logic right.

Thanks

These post deal with launching software from with your program:-

http://www.tigabyte.com/smf/index.php?topic=29.0

http://www.tigabyte.com/smf/index.php?topic=61.0


« Last Edit: December 02, 2015, 09:15:14 AM by tigabyte »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

Jeff

  • Newbie
  • *
  • Posts: 33
Re: Open A Software Using Another Software?
« Reply #2 on: February 16, 2011, 06:22:28 AM »
Okay Sir this is the code I placed in my button to launch my PDF document using my own computer but when I got my LLboy folder to another computer and tried to open the PDF it can't open.

Before that my PDF document was on the desktop and it also worked so I tought if I placed my PDF in the LLboy folder and open it to another computer it might work but unfortunately it didn't. Yet it still works in my computer.

And of course I did made a standalone .exe file which is in the LLboy folder to open in another computer but did not open the PDF document.

So please do you have a code for this,

This is the code that opens my PDF document:

Local fname,fhandle,fdetails,ftypes, fpaths,fnames,fextens

  @ set the filename of the program to launch
  Put 'C:Documents and SettingsOEM CustomerDesktopLLboyVISIT GOOGL1.pdf' into fname

  @ Get the file handle
  FolderItemGetAbs(fname,fhandle,fdetails,ftypes, fpaths,fnames,fextens)

  @ Launch the application in the foreground
  FolderItemLaunch fhandle,1


Thanks
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »

VuLMz

  • Newbie
  • *
  • Posts: 4
Re: Open A Software Using Another Software?
« Reply #3 on: February 16, 2011, 08:31:51 AM »
does that computer have a PDF file reader?
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »

Jeff

  • Newbie
  • *
  • Posts: 33
Re: Open A Software Using Another Software?
« Reply #4 on: February 16, 2011, 11:44:31 PM »
Yes!!! it has a pdf file reader
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 403
  • Here to help you
Re: Open A Software Using Another Software?
« Reply #5 on: February 17, 2011, 08:00:38 PM »
Quote from: "Jeff"
Okay Sir this is the code I placed in my button to launch my PDF document using my own computer but when I got my LLboy folder to another computer and tried to open the PDF it can't open.

Before that my PDF document was on the desktop and it also worked so I tought if I placed my PDF in the LLboy folder and open it to another computer it might work but unfortunately it didn't. Yet it still works in my computer.

And of course I did made a standalone .exe file which is in the LLboy folder to open in another computer but did not open the PDF document.

So please do you have a code for this,

This is the code that opens my PDF document:

Local fname,fhandle,fdetails,ftypes, fpaths,fnames,fextens

  @ set the filename of the program to launch
  Put 'C:Documents and SettingsOEM CustomerDesktopLLboyVISIT GOOGL1.pdf' into fname

  @ Get the file handle
  FolderItemGetAbs(fname,fhandle,fdetails,ftypes, fpaths,fnames,fextens)

  @ Launch the application in the foreground
  FolderItemLaunch fhandle,1


Thanks

Modify your code above to see if HyperNext actually found the pdf file - use the fdetails var as returned by the FolderItemGetAbs command.
Make sure that field 2 is set to multi-line otherwise only the first detail will be shown.


Code: [Select]
Local fname,fhandle,fdetails,ftypes, fpaths,fnames,fextens

@ set the filename of the program to launch
Put 'C:Documents and SettingsOEM CustomerDesktopLLboyVISIT GOOGL1.pdf' into fname

@ Get the file handle
FolderItemGetAbs(fname,fhandle,fdetails,ftypes, fpaths,fnames,fextens)

@ Put file details into field 2
Put fdetails into field 2

@ Launch the application in the foreground
FolderItemLaunch fhandle,1

These are the details returned by fdetails - the details of a file or folder is returned as a list of attributes separated by carriage returns.

   1    -  Name of file or folder.
   2    -  1 if it exists, 0 otherwise.
   3    -  1 if it is a folder, 0 if a file.
   4    -  1 if an alias.
   5    -  1 if visible.
   6    -  1 if locked.
   7    -  1 if writeable.
   8    -  1 if readable.
   9    -  the absolute path.
   10  -  the number of items in the folder.
   11  -  The Mac Type code.
   12  -  The Mac Creator code.
   13  -  the creation short date.
   14  -  the creation short time.
   15  -  the modification short date.
   16  -  the modification short time.
   17  -  the display name.
   18  -  1 if the extension is visible.
   19  -  the length of the data fork.
   20  -  the length of the resource fork.
   21  -  the Macintosh Directory ID - an integer.
   22  -  the Macintosh VRefNum - an integer.
   23  -  Actual name including extension.
   24  -  filename extension.
   25  -  type (user created ).
   26  -  Parent directory absolute pathname.
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.