Home > Community > Forums > PCB Design > function key assignment with right click options.

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: *

 function key assignment with right click options. 

Last post Wed, Mar 6 2013 8:19 AM by Boma. 2 replies.
Started by Boma 06 Mar 2013 07:21 AM. Topic has 2 replies and 678 views
Page 1 of 1 (3 items)
Sort Posts:
  • Wed, Mar 6 2013 7:21 AM

    • Boma
    • Top 200 Contributor
    • Joined on Mon, Aug 4 2008
    • Posts 37
    • Points 515
    function key assignment with right click options. Reply

    Problem: I want to assign a function key to automaticlly do a right click and a snap_to segment vertex while I am in a slide command.  Does anyone know how to do this?  Usually I do not mess with the function keys too much and my right click finger is starting to get real sore.  ;-)  Thanks.

    Boma 

    • Post Points: 20
  • Wed, Mar 6 2013 7:56 AM

    • mcatramb91
    • Top 75 Contributor
    • Joined on Thu, Jan 3 2013
    • Chelmsford, MA
    • Posts 101
    • Points 4,995
    Re: function key assignment with right click options. Reply
    Here are some examples, replace <key> with the keyboard key you would like to use.  These can be added to your local ENV file located at %HOME%\PCBENV.  Be careful of the syntax, there are single quotes used by the snap command and double quotes to enclose the entire funckey command string.

    funckey <key> "prepopup ; pop dyn_option_select 'Snap pick to@:@Via'"
    funckey <key> "prepopup ; pop dyn_option_select 'Snap pick to@:@Arc/Circle Center'"
    funckey <key> "prepopup ; pop dyn_option_select 'Snap pick to@:@Segment Vertex'"
    funckey <key> "prepopup ; pop dyn_option_select 'Snap pick to@:@Segment'"
    funckey <key> "prepopup ; pop dyn_option_select 'Snap pick to@:@Symbol Origin'"

    You can type scriptmode +echo on the Allegro command line then run thru the Right mouse button snapping commands to see the command syntax for each of the different snap types echoed onto the command line.

    Hope this helps,
    Mike Catrambone
    • Post Points: 20
  • Wed, Mar 6 2013 8:19 AM

    • Boma
    • Top 200 Contributor
    • Joined on Mon, Aug 4 2008
    • Posts 37
    • Points 515
    Re: function key assignment with right click options. Reply

    Thanks Mike,  It works great.  My problem was I forgot the prepopup. 

    Boma

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Boma at 06 Mar 2013 07:21 AM. Topic has 2 replies.