Middle Button Commands

Discussion in 'AutoCAD' started by jbasnett, Nov 23, 2004.

  1. jbasnett

    jbasnett Guest

    Is their a way without alot of trouble to add commands to your middle
    button?
    Thanks for any help,
    Jim Basnett
     
    jbasnett, Nov 23, 2004
    #1
  2. jbasnett

    Dommy2Hotty Guest

    Yes...The system variable "MBUTTONPAN" must be set to 0 in order to assign commands to it. You won't be able to pan with it anymore as a result, but you gotta give a little to get a little :') Now into the ACAD.MNU file....
    Code:
    ***AUX1
    // Simple button
    // if a grip is hot bring up the Grips Cursor Menu (POP 500), else send a carriage return
    // If the SHORTCUTMENU sysvar is not 0 the first item (for button 1, the "right button")
    // is NOT USED.
    $M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=ACAD.GRIPS $P0=*);
    $P0=SNAP $p0=* //CHANGE THIS LINE TO WHAT YOU WANT IT TO DO
    ^C^C
    ^B
    ^O
    ^G
    ^D
    ^E
    ^T
    
    
    ***AUX2
    // Shift + button
    $P0=SNAP $p0=*
    $P0=SNAP $p0=* //CHANGE THIS LINE TO WHAT YOU WANT IT TO DO
    
    ***AUX3
    // Control + button
    $P0=HATCHES $p0=*
    //ADD THIS LINE TO WHAT YOU WANT IT TO DO
    
    ***AUX4
    // Control + shift + button
    $P0=SNAP $p0=*
    //ADD THIS LINE TO WHAT YOU WANT IT TO DO
    There you go!
     
    Dommy2Hotty, Nov 23, 2004
    #2
  3. jbasnett

    jbasnett Guest

    Very well put Dommy. Thanks so much.


    commands to it. You won't be able to pan with it anymore as a result, but
    you gotta give a little to get a little :') Now into the ACAD.MNU file....
     
    jbasnett, Nov 23, 2004
    #3
  4. jbasnett

    Dommy2Hotty Guest

    No problem at all :')
     
    Dommy2Hotty, Nov 23, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.