• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X Scripting - Skill
  3. axlShell("replay SCRIPT.scr") command in SKILL code not...

Stats

  • Replies 9
  • Subscribers 17
  • Views 6948
  • Members are here 0
More Content

axlShell("replay SCRIPT.scr") command in SKILL code not working-- "W- Cannot exit current application E- Can't find window; form.film_control"

EMperson
EMperson over 6 years ago

I created some code in SKILL that attempts to run the script, "SCRIPT.scr". 

SKILL CODE:

axlShell("replay SCRIPT.scr")

___________________________________

SCRIPT.scr:

setwindow pcb
trapsize 47451
placementedit
artwork
setwindow form.film_control
FORM film_control filmtree popup Add 01_Top
fillin "File"
FORM film_control ok
setwindow pcb
placementedit

_____________________________________

When I type "replay SCRIPT1.scr" into the Allegro command window, the script works perfectly. But when I call axlShell("replay SCRIPT.scr") in my code, two errors pops up: 

W- Cannot exit current application
E- Can't find window; form.film_control

______________________________________

Any ideas why these errors are popping up, and what I can do to avoid them?

Thanks

  • Cancel
  • Sign in to reply
  • eDave
    eDave over 6 years ago

    Works ok for me. Try adding this to your code before calling the script: 

    unless( axlOKToProceed(), axlShell("done"))

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EMperson
    EMperson over 6 years ago in reply to eDave

    Your skill code works too? I tried adding your code to my code but it still isn't working

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 6 years ago in reply to EMperson

    Yes. The Skill code works. Are you running it on the Skill command line or in an Allegro console?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EMperson
    EMperson over 6 years ago in reply to eDave

    I'm running the Skill code by typing "skill load test.il" and then typing a command ("txt") which runs axlShell("replay SCRIPT1.scr")... into the Allegro command line

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EMperson
    EMperson over 6 years ago in reply to EMperson

    Update-- Using "axlShellPost()" instead of "axlShell()" seemed to fix the problem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information