12-18-2015, 11:45 AM
Thank you for this very prompt reply. However, perhaps I was misunderstood. For example, the following function is perfectly triggered by shortcuts (lnk) files. My question was if I could confine it to shortcuts of .pdf type :
Function GoTo_Target
Trigger $sm "GoTo Target" 0x40 "lnk" "$user profile$\My Documents\Local Settings\sysman\Icons\Ico\Shortcut2.ICO" "GoTo shortcut target"
Function GoTo_Target
Trigger $sm "GoTo Target" 0x40 "lnk" "$user profile$\My Documents\Local Settings\sysman\Icons\Ico\Shortcut2.ICO" "GoTo shortcut target"

;\
function $files
str si.getmacro(getopt(itemid) 1)
str caller.getmacro(getopt(itemid 1) 1);err caller=si
if ideb; min 0; err out "<>%s : <open ''%s /%i''>%s</open> - Called by : %s" NowT si _error.place si caller
str f
int i
foreach f files
,i=i+1
,outt f
if i<>1
,_s=F"Files triggered {i} - Caller : <open>{caller}</open> "
,min 0; err out "<>%s : <open ''%s /%i''>%s</open> - %s" NowT si _error.place si _s
,mac "Warning_QM" si 0
,end
GoToTarget(f)