Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get shortcut location of compiled qm exe if shortcut clicked
#1
Is it possible to get a shortcut location of a compiled QM macro/function .exe.
In other words, I created a macro then compiled it to exe and then created a shortcut from it to:
f:\abc\test\shorctut_from_mac1.lnk

When I double click that shortcut I want to output:
f:\abc\test\shorctut_from_mac1.lnk

"mac1.exe" resides in for example d:\testdir\mac1.exe.
This means "mac1.exe" needs somehow to catch the .lnk location.

It's probably not possible, but I think I still ask (maybe there is another way?).

Do not be confused with this function (this works perfectly, but I need the shortcut location):
Macro Macro6
Code:
Copy      Help
SHORTCUTINFO si
_s="C:\Users\Public\Desktop\Mozilla Firefox.lnk"
GetShortcutInfoEx(_s si)
out si.initdir
out si.target
#2
I also think it is not possible. Or unreliable.
#3
Ok! Had a feeling this wouldn't be possible.
Thank you!


Forum Jump:


Users browsing this thread: 1 Guest(s)