<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Autolisp Mouse Left Click? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12814999#M13265</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to initiate or simulate a left mouse click. Similar to "" for spacebar/enter. Is this possible? I cant find much on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 13:36:02 GMT</pubDate>
    <dc:creator>anieves228</dc:creator>
    <dc:date>2024-06-03T13:36:02Z</dc:date>
    <item>
      <title>Autolisp Mouse Left Click?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12814999#M13265</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to initiate or simulate a left mouse click. Similar to "" for spacebar/enter. Is this possible? I cant find much on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 13:36:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12814999#M13265</guid>
      <dc:creator>anieves228</dc:creator>
      <dc:date>2024-06-03T13:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Autolisp Mouse Left Click?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12815056#M13266</link>
      <description>&lt;P&gt;Can you just give it XY coordinates?&amp;nbsp; That's what would be returned by a left-click when in a command that's looking for a location.&amp;nbsp; If you mean it for object selection by having the routine find something at a given location without your needing to pick on it, look into &lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;(nentselp)&lt;/STRONG&gt;&lt;/FONT&gt;, which can pick an object for you given the coordinates of where to pick it.&amp;nbsp; [For some reason there's no non-nested&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;(entselp)&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;function, but&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; (nentselp)&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;will see a top-level object if it's not nested.]&amp;nbsp; Or do you have some other kind of left-click purpose in mind?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 13:50:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12815056#M13266</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-06-03T13:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Autolisp Mouse Left Click?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12815108#M13267</link>
      <description>&lt;P&gt;My application is rather simple. Really just placing a text box. I did it with single-line text (as shown below). The command places text at the appropriate size and with the proper text style. I would like to do this with Multiline text. So all I would need is a left click for the second click for the text box size during the _mtext command.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;	(DEFUN C:T1 ()
    
  	(SETVAR "CMDECHO" 0)

		(C:TERRA01) ;Creates 0.1" Text style 
		(C:annoscale) ;Sets annotation scales

		(PROMPT "INSERT 0.1 TEXT")
 
      (SETVAR "CMDECHO" 0)
		
    (COMMAND "-LAYER" "M" "DWG-TEXT-GENERAL" "L" "CONTINUOUS" "" "LW" "0" "" "S" "0" "")
			(SETVAR "CLAYER" "DWG-TEXT-GENERAL")
			(COMMAND "TEXT" "S" "TERRA 0.1" PAUSE "0" "INSERT TEXT")
		(SETVAR "CMDECHO" 1)
		(PRINC)
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:05:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12815108#M13267</guid>
      <dc:creator>anieves228</dc:creator>
      <dc:date>2024-06-03T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Autolisp Mouse Left Click?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12815154#M13268</link>
      <description>&lt;P&gt;If you don't expect the Mtext to need to word-wrap, you can use the Width option and give it zero for the width, to avoid the need to pick a second point:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(COMMAND "_.MTEXT" pause "_style" "TERRA 0.1" "_width" 0 "INSERT TEXT" "")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or if you have a known width for the text box, you can give it that with a relative displacement [only the X part matters]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(COMMAND "_.MTEXT" pause "_style" "TERRA 0.1" "@4,0" "INSERT TEXT" "")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You just need to be aware of the sequence of prompts [for example, that you must pause for the first point &lt;EM&gt;before&lt;/EM&gt; the Style option unlike in a TEXT command, and you must invoke the Style option &lt;EM&gt;before&lt;/EM&gt;&amp;nbsp;giving it the second point].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.&amp;nbsp; If this:&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-general" tabindex="0"&gt;&lt;CODE&gt;(C:TERRA01) ;Creates 0.1" Text style&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;makes that Style current&lt;/EM&gt; in the process, then you &lt;EM&gt;don't&lt;/EM&gt; need to specify the Style within the Text/Mtext command.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:23:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12815154#M13268</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-06-03T14:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Autolisp Mouse Left Click?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12815223#M13269</link>
      <description>&lt;P&gt;Ah ok perfect! Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does not make the style current. it just creates it. I made this for it to be mainly called when I do other commands. Such as inserting a layout with a border template to make sure all the text has a style to reference.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(C:TERRA01) ;Creates 0.1" Text style&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:43:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12815223#M13269</guid>
      <dc:creator>anieves228</dc:creator>
      <dc:date>2024-06-03T14:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Autolisp Mouse Left Click?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12816586#M13270</link>
      <description>&lt;P&gt;If the function only creates the text style use&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(C:TERRA01) ;Creates 0.1" Text style
(setvar 'textstyle "Your style name")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jun 2024 02:32:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autolisp-mouse-left-click/m-p/12816586#M13270</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-06-04T02:32:52Z</dc:date>
    </item>
  </channel>
</rss>

