@@ -41,6 +41,8 @@ class ToM_actions{
4141
4242 def static executeAction (infoAccion , how ){
4343 waiting = true
44+ def timer = new Timer ()
45+ c. statusInfo = " ToM: Executing '${ infoAccion.label} ' "
4446 switch (how){
4547 case ex. muted :
4648 execute(infoAccion. action)
@@ -52,14 +54,14 @@ class ToM_actions{
5254 def msgDisplayTime = 3000
5355 ToM_ui . showTextMessage(" ${ infoAccion.keyStroke} : ${ infoAccion.label} " . toString(),msgDisplayTime)
5456 execute(infoAccion. action)
55- sleep(msgDisplayTime)
56- waiting = false
57+ timer. runAfter(msgDisplayTime){
58+ waiting = false
59+ }
5760 break // break is here, because if the action has not defined Hotkeys then it should show the menu way
5861 }
5962 case ex. showMenu :
6063 closeMenus(infoAccion. action)
6164 openMenus(infoAccion. action, pausa)
62- def timer = new Timer ()
6365 def espera = (infoAccion. path. size()* 2 )* pausa
6466 timer. runAfter(espera){
6567 execute(infoAccion. action)
@@ -82,6 +84,15 @@ class ToM_actions{
8284 executeActions(infoAccions , how)
8385 }
8486 }
87+ } else {
88+ if (! waiting){
89+ c. statusInfo = " ToM: Ready!! "
90+ } else {
91+ def timer = new Timer ()
92+ timer. runAfter(200 ){
93+ executeActions(infoAccions , how)
94+ }
95+ }
8596 }
8697 }
8798
0 commit comments