Okay, may the Cadencification continue. Once you are in flow, you will be creative. Cadence has set the benchmark that every other tool must aspire to.
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
}
No comments:
Post a Comment