Changeset 38 for trunk/NewView/MainForm.pas
- Timestamp:
- Sep 19, 2006, 8:16:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/MainForm.pas
r32 r38 833 833 ACLDialogs, 834 834 ACLString, 835 RunProgramUnit, 836 StringUtilsUnit, 835 837 836 838 // Components … … 5508 5510 URL: string; 5509 5511 LinkDetails: string; 5512 ProgramInfo : TSerializableStringList; 5510 5513 Begin 5511 5514 if StrLeft( LinkString, 4 ) = 'note' then … … 5517 5520 else if StrLeft( LinkString, 7 ) = 'program' then 5518 5521 begin 5519 ProgramLink := StrUnDoubleQuote( StrRightFrom( LinkString, 9 ) ); 5520 // todo: unescape quotes 5521 ProgramPath := ExtractNextValue( ProgramLink, ' ' ); 5522 Exec( ProgramPath, 5523 ProgramLink ); 5524 SetStatus( 'Launched ' 5525 + ProgramPath ); 5522 ProgramInfo := TSerializableStringList.create; 5523 ProgramInfo.readValuesFromSerializedString(StrRightFrom( LinkString, 9 )); 5524 ProgramPath := ProgramInfo.get(0); 5525 ProgramLink := ProgramInfo.get(1); 5526 TSerializableStringList.destroy; 5527 // call LaunchProgram here to inherit the environment 5528 LaunchProgram(ProgramPath, ProgramLink, ''); 5529 SetStatus( 'Launched ' + ProgramPath ); 5526 5530 end 5527 5531 else if StrLeft( LinkString, 3 ) = 'url' then
Note:
See TracChangeset
for help on using the changeset viewer.