HyperNext Studio
HyperNext Studio => General => Topic started by: Jeff 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
-
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=29.0)
http://www.tigabyte.com/smf/index.php?topic=61.0 (http://www.tigabyte.com/smf/index.php?topic=61.0)
-
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
-
does that computer have a PDF file reader?
-
Yes!!! it has a pdf file reader
-
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.
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.