Jump to content
Developer Wiki and Function Reference Links ×

Mouse moves with snaps and keypresses


Recommended Posts

Greetings All.

(I've copied this from the genereal discussion to here to be more on topic.)

I decided to write a short Vectorscript routine that requires user interaction with the selection of points using the mouse. The extra trick though that I want to implement involves checking keypresses at the same time. Trouble is, I can't figure out how to have snaps active at the same time, or rather, use a function that responds to snaps.

The GetPt and GetPtL procedures stick to snap points during use, but won't let me catch keypresses at the same time.

The GetMouse procedure and the MouseDown function let me use the KeyDown function but do not respect snap points.

Is there a way to get both snaps and keypresses while moving the mouse around in a Vectorscript?

As an example, pressing the 'U' key while using certain tools allows switching amongst tool options. I'm hoping to trap number keys to modify what the tool does on the fly. Ie, I don't want to have to pre-select the result.

Thanks for any help or suggestions.

P.

(Hopefully suggestions are relatively platform and version independent as I have clients using all sorts.)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...