Git Product home page Git Product logo

middle-click-pan-zoom-for-autocad's Introduction

Touchpad Middle Click Pan & Zoom for AutoCAD

AHK script and executable files that mimic a middle click for the purpose of simple pan and zoom in AutoCAD when using a touchpad/trackpad.

Problem:

I use a laptop with a trackpad and don't always have a mouse handy. My laptop, a Microsoft Surface Laptop Studio 2, can simulate a middle click of a mouse (like clicking the mouse wheel) if I click with three fingers, but for whatever reason it didn't work with AutoCAD's pan function.

Solution:

This utility I created to enter pan mode when the user performs a middle click.

*** Your touchpad/trackpad must have some method to perform a "middle click", similar to clicking a mouse wheel. ***

The executable file runs in the system tray awaiting a middle click. When it detects one, it checks to see if "acad.exe" (AutoCAD) is the active window.

  • If the active window is NOT AutoCAD, it allows the middle click to function normally

  • If the active window IS AutoCAD, the utility sends the following keystrokes: P (enter)

    • this enters PAN mode which allows both zooming and panning (Scroll to zoom, left click and drag to pan)
    • middle click a second time to exit pan mode (sends ESC)



To use it simply download the EXE file from this repository and run it -- that's it! It will sit neatly and quietly in your sytem tray until you close it. Note: You'll have to launch it after every reboot unless you add it to your Windows startup folder.
ย 
Or, if you use AutoHotKey, you can download the script to run or modify to suit your needs.

middle-click-pan-zoom-for-autocad's People

Contributors

nxjim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.