I am trying to find a way to bind a GUI to a key to pop it up. The GUI is compleate but unable to be used because I can not get the script I am using to work. Here is what I have so far. It is barrowed from Eph's Macro saver.
if (!$addedtoolkeys)
{
$remapDivision[$remapCount] = "Tool Prompt";
$remapName[$remapCount] = "Toggle Tool Prompt";
$remapCmd[$remapCount] = "toggleToolWindow";
$remapCount++;
$addedtoolkeys = true;
}
function toggleToolWindow(%val)
{
if(%val)
if(macroGui.isAwake())
canvas.popdialog(Tool_prompt);
else
canvas.pushdialog(Tool_prompt);
}
I am not sure if it is compleat or even correct.