Jump to content

Recommended Posts

Posted

first off, im not advertising anything, please dont ban me hehe!

 

ok so i made a script in autohotkey, that keeps clicking while the key "~" is being pressed. we use this on digitizing polylines...

 

i was thinking if i can do the same with lisp, so we could eliminate the use of another application

 

the thing is, IDK how to left click in lisp

and keep clicking while a "~" is being pressed...

Posted

Hi,

 

Simple example;

 

(while (and (setq s (getstring "\nType ~ to continue else to exit :"))
           (eq s "~")
           )
 (alert "You typed [ ~ ].Okay go ahead")
 )

Posted
Hi,

 

Simple example;

 

(while (and (setq s (getstring "\nType ~ to continue else to exit :"))
           (eq s "~")
           )
 (alert "You typed [ ~ ].Okay go ahead")
 )

 

great! what about the left mouse click?? whats the syntax for that?

Posted
great! what about the left mouse click?? whats the syntax for that?

 

For that thing you need to use grread function to catch mouse reactions.

Posted

As far as I am aware, it is not possible to send a mouse click or control the mouse through AutoLISP; the sendkeys method can be used to send keystrokes (example), but this method will throw an exception when attempting to send instructions such as "{MOVETO,10,20}" or "{CLICKLEFT,10,20}".

Posted
first off, im not advertising anything, please dont ban me hehe!

 

ok so i made a script in autohotkey, that keeps clicking while the key "~" is being pressed. we use this on digitizing polylines...

 

i was thinking if i can do the same with lisp, so we could eliminate the use of another application

 

the thing is, IDK how to left click in lisp

and keep clicking while a "~" is being pressed...

What is the end goal in mind? Are you trying to allow the user to sketch a polyline, or something else?
Posted

Also worth looking :

ACET-SYS-LMOUSE-DOWN; ACET-SYS-CONTROL-DOWN; ACET-SYS-SHIFT-DOWN

Posted

Are you aware of the SKETCH command? Explore all the options presented at the command line. Just assuming this is what you might be after.

Posted
What is the end goal in mind? Are you trying to allow the user to sketch a polyline, or something else?

YES exactly, i want to program the click for better productivity, instead of clicking on mouse, it will be faster if you just press on keyboard to click and guide it with your mouse, in that way you can sketch faster

 

Also worth looking :

ACET-SYS-LMOUSE-DOWN; ACET-SYS-CONTROL-DOWN; ACET-SYS-SHIFT-DOWN

 

i will try to search it now in how to use it, thank you :)

 

Are you aware of the SKETCH command? Explore all the options presented at the command line. Just assuming this is what you might be after.

 

yes its the first thing i have searched before i made the clicker on Autohotkey, and its good, but no undo, too fast (what we need is a click with a bit of delay so your sketch wont look too edgy), and you can't pan on the image without writing on it. what we need is we control the clicks

 

something like this, here is the code i made from Autohotkey:

$SC029::        ;this is the "~" key besides 1
While GetKeyState("SC029","P")
{
click               ; this is the left click
sleep 130         ; this is the delay between clicks
}
return

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...