Home > Community > Forums > Custom IC SKILL > Ctrl fails to execute

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Ctrl fails to execute 

Last post Thu, Apr 26 2007 10:39 AM by archive. 9 replies.
Started by archive 26 Apr 2007 10:39 AM. Topic has 9 replies and 2344 views
Page 1 of 1 (10 items)
Sort Posts:
  • Thu, Apr 26 2007 10:39 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Ctrl fails to execute Reply

    I am trying to bind a command to Ctrl but the command does not get called. I can bind this to other DrawThrus but not Ctrl. I see that the binding took when I check with hiGetBindKey. I can see that the ctrl press gets through too as the mouse clicks change to the ctrl bindings. Anyone have an idea why this would not take? Thanks


    Originally posted in cdnusers.org by steven.labarre
    • Post Points: 0
  • Thu, Apr 26 2007 10:41 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Ctrl fails to execute Reply

    the post formatted the "<" and ">" out, it should be "Ctrl\"

    I am trying to bind a command to Ctrl\ but the command does not get called. I can bind this to other DrawThrus but not Ctrl\. I see that the binding took when I check with hiGetBindKey. I can see that the ctrl press gets through too as the mouse clicks change to the ctrl bindings. Anyone have an idea why this would not take? Thanks


    Originally posted in cdnusers.org by steven.labarre
    • Post Points: 0
  • Thu, Apr 26 2007 10:43 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Ctrl fails to execute Reply

    try again......

    the post formatted the "<" and ">" out, it should be "Ctrl\DrawThru2"

    I am trying to bind a command to Ctrl\ DrawThru2but the command does not get called. I can bind this to other DrawThrus but not Ctrl\DrawThru2. I see that the binding took when I check with hiGetBindKey. I can see that the ctrl press gets through too as the mouse clicks change to the ctrl bindings. Anyone have an idea why this would not take? Thanks


    Originally posted in cdnusers.org by steven.labarre
    • Post Points: 0
  • Sun, Apr 29 2007 12:51 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Ctrl fails to execute Reply

    This is sourcelink solution 11249750 - if you can access sourcelink.cadence.com take a look there.

    Essentially it's a bug, and you need to also define the bindkey for Ctrl Btn2Down - can be a dummy SKILL expression that gets evaluated (e.g. "t").

    The same thing happens with shift modifiers, and in fact happens for all mouse drawthrus (1,2,3) - but you don't normally notice it for the other two, because they usually have the BtnXDown bindkeys defined.

    It's fixed in IC610 - there will not be a need to define the Btn2Down binding with the same modifier then.

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
  • Mon, Apr 30 2007 12:20 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Ctrl fails to execute Reply

    By the way, is there a way to bind the mouse wheel in IC5.1 ? I've been through the documentation without being able to find it.
    And I would like to differentiate scroll up or down.

    Thanks for any workaround.
    Regards


    Originally posted in cdnusers.org by ebecheto
    • Post Points: 0
  • Mon, Apr 30 2007 3:38 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Ctrl fails to execute Reply

    Yes, this is done with Btn4Down and Btn5Down. For example:


    ; mouse scroll wheel default bindings to zoom
    hiSetBindKey("Schematics" "None" "hiZoomInAtMouse()")
    hiSetBindKey("Schematics" "None" "hiZoomOutAtMouse()")


    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
  • Mon, Apr 30 2007 3:39 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Ctrl fails to execute Reply

    I hit the same problem. The angle brackets went missing. The first bindkey should have been

    None left-angle-bracket Btn4Down right-angle-bracket

    and the second should have been:

    None left-angle-bracket Btn5Down right-angle-bracket

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
  • Mon, Apr 30 2007 4:32 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Ctrl fails to execute Reply

    thx, it is indeed not in the documentation, but it works :

    ;; mouse scroll wheel default bindings to zoom
    hiSetBindKey( "Schematics" "Ctrl" "hiZoomInAtMouse()")
    hiSetBindKey( "Schematics" "Ctrl" "hiZoomOutAtMouse()")

    However It caught the mousewheel but i got in response :
    *Error* eval: undefined function - hiZoomOutAtMouse

    Well I can bind it to another function, but as you've foreseen my whish I would prefer a zoom at mouse point rather than a zoom at the centre fo the window.

    Do you know were "hiZoomOutAtMouse" function is defined ? I must have a library missing from my install or something ... ?

    thanks anyway.
    Regards


    Originally posted in cdnusers.org by ebecheto
    • Post Points: 0
  • Mon, Apr 30 2007 4:44 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Ctrl fails to execute Reply

    This function was added back in 2004 - in IC5141 USR1.

    You must be using an older version than that?

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
  • Mon, Apr 30 2007 6:24 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Ctrl fails to execute Reply

    I use this and it works very well. However, since the mouse wheel can move pretty fast, it is often received as a double mouse click by Cadence. To get the bindkey to work consistently, you'll want to define the double click setting as well. For me, I use Shift and the mouse wheel, so here are the bindkeys I set (surround all the Btn4Down keywords with angle brackets and no space after the Shift):

    hiSetBindKey("Layout" "Shift Btn4Down" "hiZoomInAtMouse()")
    hiSetBindKey("Layout" "Shift Btn4Down(2)" "hiZoomInAtMouse()")
    hiSetBindKey("Layout" "Shift Btn4Down EF" "hiZoomInAtMouse()")
    hiSetBindKey("Layout" "Shift Btn4Down(2) EF" "hiZoomInAtMouse()")


    Originally posted in cdnusers.org by dmay
    • Post Points: 0
Page 1 of 1 (10 items)
Sort Posts:
Started by archive at 26 Apr 2007 10:39 AM. Topic has 9 replies.