I have some code that defines a window position and then can retrieve it. This code works, but I need to be able to use Skill code during an interactive command. IE: While routing, I want to use my Skill window postion code to move the window, without "breaking" the interactive routing command.
axlCmdRegister( "SetCS1" `SetCS1 ?cmdType "interactive" ) axlCmdRegister( "GetCS1" `GetCS1 ?cmdType "interactive" ) defun(SetCS1 () Win01 = axlWindowBoxGet() ) ; end SetCS1defun(GetCS1 () axlWindowBoxSet( Win01 ) ) ; end GetCS1
How are you using the SetCS1 and GetCS1 and passing these events while routing.
Have you tried to run the above code while Add Route command is active using the skill interpreter window?
If you enable Add Route command and first set and then change the window location, later using the GetCS1 command in skill interpreter window you should be able to return to your previously set location while the Add Route command is still active.
In reply to Pawandeep:
I think that the problem is that Skill has a separate execution space from the interactive commands. I tried launching "add connect" from the telskill window:
but when I use the key definitions, it kills the interactive "add connect" command.