local Where = arg(1) local i local Hand = win.handle("c=TTOTAL_CMD") flag set 1 for(i = 1; 1; i = i + 1) hh = childwin.handle(Hand, i) if(hh != "" && win.width(hh) == 3) do flag clear 1 break endif endfor if(pproflag(1)) quit local HCenter = (win.left(hh) + win.right(hh))/2 local VCenter = (win.top(hh) + win.bottom(hh))/2 local expr = "ab " ++ HCenter ++ " " ++ VCenter win.mouse(expr) wait.for(10) mouse rightdown wait.for(10) mouse rightup for(i = 1; i <= Where; i = i + 1) *keys {down} endfor *keys {enter}