Jump to content
Developer Wiki and Function Reference Links ×

Capture mouse click


AlanW

Recommended Posts

Hi Alan

I can give you that:

Quote

#Python Script
def PickPointCallback(pt):
    vs.AlrtDialog('You clicked on the point with coord: \n'+str(pt))


vs.GetPt(PickPointCallback)

 

But That's just for one click. Somehow the mouse interaction, happens always at the end of the script. So the vs.GetPt Function, hat do be connected to a callback function. I never tried this in python. There are several Vectorscript Functions to call preview drawing etc. during script execution. But they seems to work different in a python script (Tried that once -> I tried once, but resigned fast)
    

 

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...