Kreatus (Ubot Ninja) 422 Posted March 19, 2014 Report Share Posted March 19, 2014 Since ubot devs looks like have no plan on implementing this. Here's a workaround on how to collapse all nodes when you open your bot. ui stat monitor("", "<script type=\"text/javascript\"> window.setTimeout(function() \{ ubot.runScript(\'collapseAllNodes()\') \}, 500) </script>") define collapseAllNodes { set(#botTitle, "testing", "Global") divider plugin command("WindowsCommands.dll", "set active window", "{#botTitle}* - UBot Studio Developer Edition", "") plugin command("WindowsCommands.dll", "keyboard event", "Alt", "Key Down") plugin command("WindowsCommands.dll", "type keys", "{#botTitle}* - UBot Studio Developer Edition", "", 381, 151, "e+collapse all") plugin command("WindowsCommands.dll", "keyboard event", "Alt", "Key Up") } What this does is simulate the clicking of "Edit>Collapse all nodes" of your bot. Instructions:- Edit the #botTitle variable with your bot name. It is case sensitive.- If you're using uiHtml Copy the javascript code on the ui stat monitor and paste it inside the head of your html. I used this javascript onload instead of ubot onload because ubot onload command triggered immediately when you open your bot that will make your bot to hang for a few seconds. More info about this js onload http://www.ubotstudio.com/forum/index.php?/topic/10747-get-onload-feature/ Download file: collapseNode.ubot K 2 Quote Link to post Share on other sites
vonnch 1 Posted March 23, 2014 Report Share Posted March 23, 2014 I'll go ahead and test this. But has someone else already seen this working? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.