My question is to reproduce what $input or $?="" does when you use it in a command.
ex:
/set %var $?="Enter Unicode Value"
/set %var $input(Enter Unicode Value,e,Input)
You would need to use the input event for the custom window, but by that time it's too late to return.
I guess you could make switches.
$input(text,-s,variable name)
alias input_ {
set %sw_ = $2
set %com_ = $3
}
on *:input:@input:{
if (%sw = -s) set $+(%,%com_) $1-
}
But this would require writing a switch for every possible command you would use an input window for.
So any ideas how I could replace the $input dialog with this @input window?