• 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 28547
  • 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 15 years ago

    Hi SlimAnt,

    The code is not actually that complicated (a lot of it is comments); what I did however was to come up with a generic solution which allows registration of the bindkeys, rather than hard coding a specific solution (which is what your trial code was doing). I think you'll find that after you've defined a few bindkey combinations, the code I provided is much simpler than it would have been if you'd coded some complex "state machine" type representation.

    Regards,

    Andrew.

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

    Hi SlimAnt,

    The code is not actually that complicated (a lot of it is comments); what I did however was to come up with a generic solution which allows registration of the bindkeys, rather than hard coding a specific solution (which is what your trial code was doing). I think you'll find that after you've defined a few bindkey combinations, the code I provided is much simpler than it would have been if you'd coded some complex "state machine" type representation.

    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