ktbjx Posted March 22, 2016 Posted March 22, 2016 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... Quote
Tharwat Posted March 22, 2016 Posted March 22, 2016 Hi, Simple example; (while (and (setq s (getstring "\nType ~ to continue else to exit :")) (eq s "~") ) (alert "You typed [ ~ ].Okay go ahead") ) Quote
ktbjx Posted March 22, 2016 Author Posted March 22, 2016 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? Quote
Tharwat Posted March 22, 2016 Posted March 22, 2016 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. Quote
Lee Mac Posted March 22, 2016 Posted March 22, 2016 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}". Quote
broncos15 Posted March 22, 2016 Posted March 22, 2016 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? Quote
marko_ribar Posted March 22, 2016 Posted March 22, 2016 Also worth looking : ACET-SYS-LMOUSE-DOWN; ACET-SYS-CONTROL-DOWN; ACET-SYS-SHIFT-DOWN Quote
rkent Posted March 22, 2016 Posted March 22, 2016 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. Quote
ktbjx Posted March 23, 2016 Author Posted March 23, 2016 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 Quote
Recommended Posts
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.