<?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 Capture Keystrokes in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227526#M46935</link>
    <description>I want to make a command to make it easier to create script files.&lt;BR /&gt;
&lt;BR /&gt;
The idea is to click a start button in a modeless form, and from then on grab each key as it's pressed until a stop button is pressed, so that I can then save it to a *.scr file to run on multiple drawings.&lt;BR /&gt;
&lt;BR /&gt;
Now, seeing there's no KeyPress event for AutoCAD, does anyone know of a way to do this?&lt;BR /&gt;
&lt;BR /&gt;
Using the Begin/EndCommand events gives me the commands, but doesn't give me the options that may have been set from within the command.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Mick.</description>
    <pubDate>Wed, 19 Jan 2005 05:35:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-01-19T05:35:27Z</dc:date>
    <item>
      <title>Capture Keystrokes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227526#M46935</link>
      <description>I want to make a command to make it easier to create script files.&lt;BR /&gt;
&lt;BR /&gt;
The idea is to click a start button in a modeless form, and from then on grab each key as it's pressed until a stop button is pressed, so that I can then save it to a *.scr file to run on multiple drawings.&lt;BR /&gt;
&lt;BR /&gt;
Now, seeing there's no KeyPress event for AutoCAD, does anyone know of a way to do this?&lt;BR /&gt;
&lt;BR /&gt;
Using the Begin/EndCommand events gives me the commands, but doesn't give me the options that may have been set from within the command.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Mick.</description>
      <pubDate>Wed, 19 Jan 2005 05:35:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227526#M46935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-19T05:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Keystrokes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227527#M46936</link>
      <description>Hi Mick,

Search back through the NGs with Google.  There was a program to do this 
posted some years ago.

-- 

Regards,


Laurie Comerford
www.cadapps.com.au

"MickyV" &lt;NOSPAM&gt; wrote in message 
news:781438.1106112958370.JavaMail.jive@jiveforum2.autodesk.com...
&amp;gt;I want to make a command to make it easier to create script files.
&amp;gt;
&amp;gt; The idea is to click a start button in a modeless form, and from then on 
&amp;gt; grab each key as it's pressed until a stop button is pressed, so that I 
&amp;gt; can then save it to a *.scr file to run on multiple drawings.
&amp;gt;
&amp;gt; Now, seeing there's no KeyPress event for AutoCAD, does anyone know of a 
&amp;gt; way to do this?
&amp;gt;
&amp;gt; Using the Begin/EndCommand events gives me the commands, but doesn't give 
&amp;gt; me the options that may have been set from within the command.
&amp;gt;
&amp;gt; Thanks,
&amp;gt; Mick.&lt;/NOSPAM&gt;</description>
      <pubDate>Wed, 19 Jan 2005 05:40:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227527#M46936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-19T05:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Keystrokes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227528#M46937</link>
      <description>Laurie,&lt;BR /&gt;
&lt;BR /&gt;
I did find a Macro Recorder posted by Joe Sutphin, but this appears (at least to me - please correct me if I'm wrong) to only work with adding objects. While the same tact could be taken for modifying existing objects, it would mean going through every object type and creating a template for both adding and modifying each of them.&lt;BR /&gt;
&lt;BR /&gt;
I want to make a program that will allow the user to do anything that he/she could have done through the AutoCAD command line, not limit them to the commands/objects that I have already set up, hence the desire to find a way to capture keystrokes.</description>
      <pubDate>Wed, 19 Jan 2005 06:38:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227528#M46937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-19T06:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Keystrokes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227529#M46938</link>
      <description>Hi Micky,

I have never used it.  However, if it creates code, then you can use that as 
sample code and edit as you require.

If you have ever used the Macro recorder in any of the MS Office software, 
you will know what I mean.

-- 

Regards,


Laurie Comerford
www.cadapps.com.au

"MickyV" &lt;NOSPAM&gt; wrote in message 
news:28550017.1106116725132.JavaMail.jive@jiveforum1.autodesk.com...
&amp;gt; Laurie,
&amp;gt;
&amp;gt; I did find a Macro Recorder posted by Joe Sutphin, but this appears (at 
&amp;gt; least to me - please correct me if I'm wrong) to only work with adding 
&amp;gt; objects. While the same tact could be taken for modifying existing 
&amp;gt; objects, it would mean going through every object type and creating a 
&amp;gt; template for both adding and modifying each of them.
&amp;gt;
&amp;gt; I want to make a program that will allow the user to do anything that 
&amp;gt; he/she could have done through the AutoCAD command line, not limit them to 
&amp;gt; the commands/objects that I have already set up, hence the desire to find 
&amp;gt; a way to capture keystrokes.&lt;/NOSPAM&gt;</description>
      <pubDate>Wed, 19 Jan 2005 07:50:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227529#M46938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-19T07:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Keystrokes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227530#M46939</link>
      <description>Since you already have a form, try this.
Add a textbox control and set its Multiline property to True.
Change the Stop button to a Save button and save the text to a txt file with
a *.scr extension.
Here's another method I use with a script manager program I wrote. I just
shell to Notepad. I have a listbox with filenames. If the user selects one
and clicks on edit, it opens the script in Notepad. If they click on the New
button, it prompts for a filename and starts Notepad with the new file. So
by putting them in the text editor, I don't have to capture keystrokes or
copy from a temp editor to the permanent one.

-- 
----
Ed
----
"Laurie Comerford" &lt;LAURIE.COMERFORD at="" i="" hate="" spam.com.au=""&gt; wrote in message
news:41ee11e2_3@newsprd01...
&amp;gt; Hi Micky,
&amp;gt;
&amp;gt; I have never used it.  However, if it creates code, then you can use that
as
&amp;gt; sample code and edit as you require.
&amp;gt;
&amp;gt; If you have ever used the Macro recorder in any of the MS Office software,
&amp;gt; you will know what I mean.
&amp;gt;
&amp;gt; -- 
&amp;gt;
&amp;gt; Regards,
&amp;gt;
&amp;gt;
&amp;gt; Laurie Comerford
&amp;gt; www.cadapps.com.au
&amp;gt;
&amp;gt; "MickyV" &lt;NOSPAM&gt; wrote in message
&amp;gt; news:28550017.1106116725132.JavaMail.jive@jiveforum1.autodesk.com...
&amp;gt; &amp;gt; Laurie,
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; I did find a Macro Recorder posted by Joe Sutphin, but this appears (at
&amp;gt; &amp;gt; least to me - please correct me if I'm wrong) to only work with adding
&amp;gt; &amp;gt; objects. While the same tact could be taken for modifying existing
&amp;gt; &amp;gt; objects, it would mean going through every object type and creating a
&amp;gt; &amp;gt; template for both adding and modifying each of them.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; I want to make a program that will allow the user to do anything that
&amp;gt; &amp;gt; he/she could have done through the AutoCAD command line, not limit them
to
&amp;gt; &amp;gt; the commands/objects that I have already set up, hence the desire to
find
&amp;gt; &amp;gt; a way to capture keystrokes.
&amp;gt;
&amp;gt;&lt;/NOSPAM&gt;&lt;/LAURIE.COMERFORD&gt;</description>
      <pubDate>Wed, 19 Jan 2005 16:50:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227530#M46939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-19T16:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Keystrokes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227531#M46940</link>
      <description>If you set a windows hook procedure you may be able to check the key pressed and write it to the file.&lt;BR /&gt;
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/usinghooks.asp&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Wed, 19 Jan 2005 22:50:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/capture-keystrokes/m-p/1227531#M46940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-19T22:50:08Z</dc:date>
    </item>
  </channel>
</rss>

