I have created a script which reloads with elevated rights when necessary with this common code:
The script is also loaded with a parameter which is not always the same.
for example: c:\myscript.ahk par1
The problem is that if the script reloads as admin, the original parameter gets lost.
How can I maintain it in the reloaded script?
I tried this Run *RunAs "%A_ScriptFullPath%" "%1%" but it doesnt work.
I also searched the forum but I found some old complicated solutions in the old boards which require dllcalls etc to work.
Is there a simple way to resolve this?