The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help to Receive shortcut param in a qm created exe
#1
Need help to receive shortcut param in a qm created exe.

Eg. I created an .exe with QM.
This program first thing, needs to check for the shortcuts params. The program does not know the path to the shortcut.
For example.. How does QM handle the "v"?
Desktop shortcut for QM:
"C:\Program Files (x86)\Quick Macros 2\qm.exe" v <---

1) Multiple shortcuts pointing to same program.
Some will have no arguments, and some will.

2) Shortcut target is:
C:\UT\OC\O_C.exe -sc <-- ;; this is what O_C.exe will look for.

Code below: sorry could not get code for forum to go correctly...
<<< STRINGS >>>
str s1
str sIni
str sRunPath;; ie. "C:\UT"
str sWinName;; ie. "UT"

<<< CHECK SHORTCUTINFO >>>

SHORTCUTINFO si
GetShortcutInfoEx(s1 si);; s1=Path to Shortcut si=Args
out si.initdir
out si.param;; ie. "-sc" look for this in O_C.exe program first thing!
if si.param="-sc"
sRunPath=si.initdir
goto Process:
else
goto GetPath:
end


Any help, many thanks.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)