Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shell menu triggers : Shorcuts of a given file type
#3
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"     Help - how to add the trigger to the macro
Code:
Copy      Help
;\
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)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)