ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
Code: getting x,y position before moving the mouse??
-
To get the x,y position of the mouse pointer, normally you would use
def onMouseMove(flags, x, y, view) @ip.pick(view, x, y)
This code relies on the mouse being moved. But, if a tool is started with a keypress, is it possible to immediately get the x,y position of the mouse pointer before actually moving the mouse?
Advertisement