Thanks. problem solved.MVV wrote: 2019-12-12, 05:32 UTC Well, it is really a problem of all such systems - how to detect end of a token if two tokens are concatenated.
In this case it is not easy to detect how many digits are in parameter number if there are digits just after parameter number, this is not a bug but an ambiguity. Program can't know what do you want to insert - %1 and 2019, %12 and 019 etc (imagine a case when there are enough parameters passed).
For such cases there is a 3-digit limitation in AskParam for parameter number (i.e. you can't ask for more than 999 parameters).
So you can try %%001%N in your button parameters, and this will always mean that you want to insert %001 and then any following digits:Also you can insert parameter via %AskParam1%, so there will be no ambiguity:Code: Select all
Parameters: /q"`" /rd /c"param" /u"A: `%P`" /p(h)"Profile:" cmd /c echo %%001%N && pause
Code: Select all
Parameters: /q"`" /rd /c"param" /u"A: `%P`" /p(h)"Profile:" cmd /c echo %%AskParam1%%%N && pause
AskParam: Asks for command-line parameters via GUI dialog
Moderators: Hacker, petermad, Stefan2, white
Re: AskParam: Asks for command-line parameters via GUI dialog
Re: AskParam: Asks for command-line parameters via GUI dialog
2MVV
Hello, is there have new version of askparam?
I seemly see there is a new beta that can set the icon on wincmd.ru forum
But now i can't connect totalcmd.net and wincmd.ru for check.
Anyway, thanks for your reading.
Hello, is there have new version of askparam?
I seemly see there is a new beta that can set the icon on wincmd.ru forum
But now i can't connect totalcmd.net and wincmd.ru for check.
Anyway, thanks for your reading.
Re: AskParam: Asks for command-line parameters via GUI dialog
Sorry, there were no new versions last three years, the most recent was 1.0.7.160:
AskParam beta 160 (changes since build 146):
+ /i option allows changing icon on the fly
* some buffer security checks added
AskParam beta 160 (changes since build 146):
+ /i option allows changing icon on the fly
* some buffer security checks added
Re: AskParam: Asks for command-line parameters via GUI dialog
Sorry for one question, how can i use the p(e) option?
I try this command
But when i type 123, i still get tye result youtube-dl url not youtube-dl 123
What's wrong with my command? Thank you.
Askparam's ver is 1.0.7.160
I try this command
Code: Select all
AskParam.exe /p(e)"url: Enter password:" cmd /k youtube-dl.exe %%url%%
What's wrong with my command? Thank you.
Askparam's ver is 1.0.7.160
Re: AskParam: Asks for command-line parameters via GUI dialog
With your example and 123, I see properly started process in task manager:
Try these two:
If you see your typed text, AskParam works fine. If your text contains spaces, perhaps you should quote %%url%%.
Code: Select all
"C:\Windows\System32\cmd.exe" /k youtube-dl.exe 123
Code: Select all
AskParam.exe /p(e)"url: Enter password:" cmd /k set url
AskParam.exe /p(e)"url: Enter password:" cmd /k echo youtube-dl.exe %%url%%
Re: AskParam: Asks for command-line parameters via GUI dialog
Thanks for your reply
If i use the second cmd which has two lines
I will see two times of the askparam's window which ask for the password.
Is it right?
BTW.It's ok with
but it's not ok with
If i use the second cmd which has two lines
I will see two times of the askparam's window which ask for the password.
Is it right?
BTW.It's ok with
Code: Select all
AskParam.exe /p"Enter password:" cmd /k youtube-dl.exe %%1
Code: Select all
AskParam.exe /p"Enter password:" cmd /k youtube-dl.exe %%AskParam1%%
Re: AskParam: Asks for command-line parameters via GUI dialog
Spaces in URL should be percent-encoded as %20MVV wrote: 2020-05-15, 10:22 UTC If you see your typed text, AskParam works fine. If your text contains spaces, perhaps you should quote %%url%%.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: AskParam: Asks for command-line parameters via GUI dialog
Usher,
You're right, it is not required for URLs, but as a general rule would be useful to always quote all user-defined arguments.
kesdoputr,
There are two sample command lines in my code block, and each of them should show dialog once.
Your command line with %%AskParam1%% also works for me. When I type 123, I see following process command line:
You're right, it is not required for URLs, but as a general rule would be useful to always quote all user-defined arguments.
kesdoputr,
There are two sample command lines in my code block, and each of them should show dialog once.
Your command line with %%AskParam1%% also works for me. When I type 123, I see following process command line:
Code: Select all
"C:\Windows\System32\cmd.exe" /k youtube-dl.exe 123
Re: AskParam: Asks for command-line parameters via GUI dialog
2MVV
It's strange, i make a bat file and it's content below
And i put the bat file together with askparam.exe
Then i run the bat and type 123
https://i.imgur.com/1MuPk33.png
But when i press ok i get this result
https://i.imgur.com/8hFtI0E.png
Will the reason be the OS? I am using Windows7 SP1 x64
It's strange, i make a bat file and it's content below
Code: Select all
AskParam.exe /p"Enter password:" cmd /k youtube-dl.exe %%AskParam1%%
Then i run the bat and type 123
https://i.imgur.com/1MuPk33.png
But when i press ok i get this result
https://i.imgur.com/8hFtI0E.png
Will the reason be the OS? I am using Windows7 SP1 x64
Re: AskParam: Asks for command-line parameters via GUI dialog
If you use inside a bat/cmd file, you have to double % sign.kesdoputr wrote: 2020-05-15, 19:53 UTC 2MVV
It's strange, i make a bat file and it's content belowCode: Select all
AskParam.exe /p"Enter password:" cmd /k youtube-dl.exe %%AskParam1%%
Code: Select all
@REM youtuble-dl bat file
AskParam.exe /p"Enter password:" cmd /k youtube-dl.exe %%%%AskParam1%%%%
Re: AskParam: Asks for command-line parameters via GUI dialog
2nsp
It's work with double %% sign.
And it's also work when use p(e) option like %%%%url%%%%
Thanks for your reply.
It's work with double %% sign.
And it's also work when use p(e) option like %%%%url%%%%
Thanks for your reply.
Re: AskParam: Asks for command-line parameters via GUI dialog
Hi there,
I still use AskParam extensively. It's very convenient for many tasks.
Is there a command line parameter to show the final command line (in an editable textbox) right before executing it? Maybe it can be added?
This would be great for debugging the parameters and for changing minor details before execution.
Thank you!
lcf
I still use AskParam extensively. It's very convenient for many tasks.
Is there a command line parameter to show the final command line (in an editable textbox) right before executing it? Maybe it can be added?
This would be great for debugging the parameters and for changing minor details before execution.
Thank you!
lcf
Re: AskParam: Asks for command-line parameters via GUI dialog
funkymonk wrote: 2023-02-15, 13:45 UTC Hi there,
I still use AskParam extensively. It's very convenient for many tasks.
Is there a command line parameter to show the final command line (in an editable textbox) right before executing it? Maybe it can be added?
This would be great for debugging the parameters and for changing minor details before execution.
Thank you!
lcf
In TCs' Parameterbox you can add a leading ? -sign to be prompted.
Re: AskParam: Asks for command-line parameters via GUI dialog
Well, thank you, but that's not what I need.Stefan2 wrote: 2023-02-15, 13:51 UTC In TCs' Parameterbox you can add a leading ? -sign to be prompted.
I was asking about the final command line as composed by AskParam (not about the command line to call AskParam from TC).