i would like create a macro
when i click on my macro
my macro ask me "Where Store?'
if ask 101 >>>> this is recordin in my executor 101
Thanx
i would like create a macro
when i click on my macro
my macro ask me "Where Store?'
if ask 101 >>>> this is recordin in my executor 101
Thanx
As far as I know you still can't ask questions via command line directly. However you can do it via a or Macro or Lua.
A one liner lua script would be something like:
lua'local c="Store Executor " .. TextInput("Where Store?"); Cmd(c)'
This used the TextInput() API to ask the user a question and store it in the variable c. If the user enters 201 that should result in Store Executor 201 on the command line You could also specify the page.executor with a little editing.
The only real issue with using this is if the user enters text and not a number, odd things may happen. This could be avoided by using string.format() to tonumber() as in the above link, causing text to return nil and causing the command to fail, but this is clearer to read.
Like this:
lua'local c="Store Executor " .. tonumber(TextInput("Where Store?")); Cmd(c)'
If you enter "Pizza" the command will error out.
try this:
Store Executor (Where Store?)
try this:
Store Executor (Where Store?)
Well look at that. When did that come in?
Parantheses to open input pop-ups are part of the software since v0.8.
Copy that, on a few occurrences I have suggested using lua, but I honestly don't recall seeing that this was possible. perhaps I missed it in the manual? Good to know either way.
Don’t have an account yet? Register yourself now and be a part of our community!