Hard-to-find tips on otherwise easy-to-do tasks involving everyday technology, with some advanced insight on history and culture thrown in. Brought to you by a master dabbler. T-S T-S's mission is to boost your competitiveness with every visit. This blog is committed to the elimination of the rat from the tree of evolution and the crust of the earth.
Sunday, January 18, 2015
LTspice : Cadence Style Zoom with Right Mouse Button
What : You want to be able to click and drag with the right mouse button to define the zoom rectangle and not have to first launch the zoom command.
Note : This implementation achieves the objective, but doesn't cause the zoom rectangle to be drawn - so it's not perfect, but still works good enough.
See below post on LTspice customization with Autohotkey.
Add this code :
RButton::
MouseGetPos, sx, sy
If ( GetKeyState( "RButton", "P"))
{
Loop{
Sleep, 50
MouseGetPos, cx, cy
If ( abs( cx-sx) > 5 or abs( cy-sy) > 5 )
{
Send z
ControlClick, X%sx% Y%sy%,,,,,D
Break
}
If ( !GetKeyState("RButton", "P") )
{
Click Right
return
}
}
KeyWait, RButton
Click Up
return
} else {
Click Right
return
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment