Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Macro recorder loses ( character
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

DaveL
New Member

4 Posts

Posted - May 21 2008 :  07:01:53 AM  Show Profile  Reply with Quote
I'm in the process of changing text strings from "text" to _T("text") so I used the VS Record Temporary Macro facility to record the entering of _T( and ).

On Playback it's only doing: _T"text")

... the ( that I entered has been lost.

Disabling VAX while I record the macro resolves the issue.

Is this known expected behaviour or can it be fixed?

I'm currently using VS2005 SP1.

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - May 21 2008 :  10:08:25 AM  Show Profile  Reply with Quote
Having VA active while recording and playing back keyboard macros is difficult, since VA is designed to work as you type, depending on the context and types involved.

We are looking to have VA disable its self / keep out of the way while you are recording and playing back keyboard macros:

case=724

For now have you considered using a regular expression find and replace to do these changes? It might be quicker, or perhaps using a VA snippet line _T($selected$)

zen is the art of being at one with the two'ness
Go to Top of Page

DaveL
New Member

4 Posts

Posted - May 21 2008 :  10:17:27 AM  Show Profile  Reply with Quote
Thanks for the confirmation - it's not a significant issue, I just thought I should mention it to you.
Go to Top of Page

pbrown
Senior Member

USA
44 Posts

Posted - Jun 12 2008 :  12:30:54 AM  Show Profile  Reply with Quote
quote:
Originally posted by DaveL

Thanks for the confirmation - it's not a significant issue, I just thought I should mention it to you.


I use temporary macros all the time and have had similar problems. Worse yet, recording keyboard macros is pathetically slow on VS2008 with VAX enabled, often taking multiple seconds per keystroke.

My workaround is to add following macro in the Macros IDE and bind it to the key I normally use to start/stop recording.

    ' Wrapper to record a temporary macro.  Disables VAX prior to recording as it 
    ' seems to slow down recording substantially.
    Sub RecordMacro()
        DTE.ExecuteCommand("VAssistX.EnableDisable")
        DTE.ExecuteCommand("Tools.RecordTemporaryMacro")
    End Sub
Go to Top of Page

gstelmack
Ketchup Master

USA
76 Posts

Posted - Jun 12 2008 :  10:13:52 AM  Show Profile  Reply with Quote
You can also hand-edit the macro as needed after recording it. It shows in the My Macros area.

-- Greg Stelmack, Red Storm Entertainment
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Jun 12 2008 :  12:13:05 PM  Show Profile  Reply with Quote
pbrown thank you for this, it is a very simple and interesting work around. I have made a note of this on the case for future reference

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 12 2011 :  12:37:30 AM  Show Profile  Reply with Quote
case=724 is fixed in build 1848

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000