Extension - loading options after some script processing

Advertisement

user564758
Joined:
Posts:
5

Extension - loading options after some script processing

I do not think there is a way to have options load a variable default from a text file (please let me know if i am wrong) so i was thinking the next best thing would be to do some script processing before the dialogue box opens. Is this possible?

Something like this.

# @name test
# @command cmd /c start example.exe www.WinSCPextension "%username%" "%variable%"
# @side Local
# @flag
# @description test
#
my script to get  variable from a text file.
#
# @option username -run textbox "&Username" "!U"
# @option variable -run textbox "&variable" "%variable%"
#
The rest of my script.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
30,857
Location:
Prague, Czechia

Re: Extension - loading options after some script processing

I'm considering something like that too.

Meanwhile, you can load the defaults after the dialog, if the user does not specify any custom value (or keeps a default magic value like "default")

Reply with quote

Advertisement

You can post new topics in this forum