• 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. Custom IC SKILL
  3. How to create two or three key strokes bindkeys

Stats

  • Locked Locked
  • Replies 21
  • Subscribers 146
  • Views 28521
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to create two or three key strokes bindkeys

SlimAnt
SlimAnt over 15 years ago

Hello,

How can I create two or three key strokes bindkeys without changing the existing bindkeys?

For example, addition of existing bindkeys such as: m -> to activate move

I would like to create new bindkeys such as: jmp -> SKILL code to jump to a certain coordinate


I tried using the following function getc to read the next character from keyboard and it doesn't work.

   procedure( call_2()

        TT = getc()

                if( TT = "p" then

                     ; function to jump

                )

     )


   procedure( call_1()

          TT = getc()

                 if( TT = "m" then

                        call_2()

                 )

      )


hiSetBindKey("Layout" "none<Key>j" "call_1()")


I am using version IC6.1.3

I Appreciate any help that I can get.

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    In principle, yes. You'd have to change initBindKeys to add bindings for modified keys - and this would need to call the ->enter function with some sequence to identify that unambiguously. Currently the ->enter gets called with a single character, e.g. "a", "B", "0" - but there's no reason why it couldn't be something else - e.g. "^D" to represent control-D - and then you enter that in your sequence definitions.

    Whether it's really what you want, I'm not sure - this is a bit of an all or nothing solution.

    Note, I didn't try changing it as described above - but from a quick glance back through the code (and I did write it getting on for 5 years ago), I think that should be possible.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    In principle, yes. You'd have to change initBindKeys to add bindings for modified keys - and this would need to call the ->enter function with some sequence to identify that unambiguously. Currently the ->enter gets called with a single character, e.g. "a", "B", "0" - but there's no reason why it couldn't be something else - e.g. "^D" to represent control-D - and then you enter that in your sequence definitions.

    Whether it's really what you want, I'm not sure - this is a bit of an all or nothing solution.

    Note, I didn't try changing it as described above - but from a quick glance back through the code (and I did write it getting on for 5 years ago), I think that should be possible.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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