macros

DTE.Debugger.Go(False) fails after building externally in a Visual Studio 2008 macro

I am writing a macro to save all open documents, launch MSBuild to build C# projects in parallel, and then run the solution using the debugger. Automating these steps in a reliable way will save my team a lot of time. My problem is I can't get DTE.Debugger.Go(False) to work when the external build changes the output files. Error ...

How to get an event on file save

I am planning to integrate NArrange in my visual studio solution,i want to run this exe whenever a file is saved,Is there a way to receive event when file gets saved? I have heard about macro but do not have much information on that. ...

How to make browser do a set of predefined inputs?

Hi, There's a website I frequent that gives codes such as GD??Q-TPY32-TPTT3-9CM9P-F2QMQ and hints that the ?? is a number and a letter. If you're the first to unlock the code you can redeem the modest prize. So the obvious way to solve this problem is to brute-force the code. But obviously I don't want to sit in front of the computer ...

Maximize the Visual Studio IDE from a macro?

While I'm perfectly willing to believe that this has been asked elsewhere, I haven't been able to find it. I'm currently using macros to switch window layouts in Visual Studio by importing .vssettings files, but these files don't maintain the maximized state of the IDE (I have a single-screen layout that I want to be maximized, and a du...

in windows SAS, how to read the file loaded recently in particular path.

in windows SAS, how to read the file loaded recently in particular path. as i am accing from a path having lot of files , so it should pick a file having the latest data loaded in that path ...

Additional macro support in clang?

Since LLVM/cLang is especially well designed. This seems like a great opportunity to augment the C/C++ macro/preprocessor system. Does anyone know of additional macro/preprocessor abilities added by Clang or side projects to make the macro system more powerful (like turing complete) Thakns! Note: I am asking about macros. Not C++ ...

Run VBA macro when condition is met

Hello all, I'm creating a spreadsheet to train my numerical skills. Now, I use VBA macros to generate a new problem once the current one has been correctly solved. To do so, I still have to press a button in the worksheet, which costs time and is annoying. Is there a way that I can execute a macro when a certain condition is met? f...

Sort Outlook Inbox "Arrange By" | Switch between FROM and Conversation View

Using VBA and a toolbar button, I'd like to be able to Switch between FROM and Conversation View, but I just can't work how to or find the code to do this. I tried the Sort Methods but, they only work in memory and don't re-sort the actual inbox. I use Conversation View for GMail style functionality with my Sent items BCC'd to myself, ...

How to call a visio macro from a stencil

i have written some Macros for Visio. Now I copied these to a Stencil called Macros.vss How can I call my Macros now? ...

Howto Change Language in a cell in a OpenOffice Calc spreadsheet with help of macro.

The generated code when I make macro recording when I change language (to Spanish for example) does not work in OpenOffice Calc. It does work in OpenOffice Write. Which function calls shall be used in a OpenOffice Calc Macro to change the lanuage in the marked cells? ...

What are some good resources for learning how to implement Scheme Macros?

I've written a Scheme-ish language compiler/vm in JavaScript. http://github.com/z5h/zb-lisp Dybvig's "Three Scheme Implementations" paper (available on my github) was hugely important in getting stuff like tail-call-optimization, call/cc and other things working. I'm thinking about adding some type of macro support. And wondering if the...

MS Access 2007 autoexec macro alernatives?

I'm having an issue with program distributed via Microsoft Access runtime. It runs an autoexec macro at the beginning to run a piece of code. I've done all the security setting and trusted zone settings, but the error seems to crop up on Windows 7 installations. Ideally, I'd just like to have the code run automatically without the auto...

Word 2003 - How to use a Macro to Change styles?

Is it possible to create a Word 2003 Macro to change the font style of certain segments of a document? For example, say I have a document that has a large portion of text as bold italic and 12 point font. I'd like to replace all text with these characteristics with underlined 14 point font. I've already done some searches on Google,...

How to skip Autoexec macro when opening MSAccess from MSAccess?

So I have an MSAccess MDB that needs to open other MDB's and run a bunch of code that will compare two Access MDB's to find code differences,query diffs,etc. The goal being to verify any production MDB has not been altered from the original deployment. My problem is that many of these Access apps have Autoexec macros and there is no sim...

Writing preprocessor directives to get string

Can you write preprocessor directives to return you a std::string or char*? For example: In case of integers: #define square(x) (x*x) int main() { int x = square(5); } I'm looking to do the same but with strings like a switch-case pattern. if pass 1 it should return "One" and 2 for "Two" so on.. ...

Updating target workbook - extracting data from source workbook

My question is as follows: I have given a workbook to multiple people. They have this workbook in a folder of their choice. The workbook name is the same for all people, but folder locations vary. Let's assume the common file name is MyData-1.xls. Now I have updated the workbook and want to give it to these people. However when they r...

C debugging macro (with different debug "sources")

I set out to get myself a neat C debugging macro, not really sure what I really wanted (and being clueless when it comes to macros) I turned to google. Some time later and I now think I know what I want, but not how it works. I haven't had much luck with getting decent information about macros and techniques for debugging. What I've bee...

elisp macro to write function?

hello I have written few functions, which nearly identical, save for names. For example ; x is name, such as function/paragraph/line/etc. (defun my-x-function (interactive) (mark-x) (do-more-stuff) (modify-x)) is there a way to put it automatically to generate function, paragraph, etc. functions? I have a feeling this is what macr...

How to add a build time to a file archive as a post-build macro?

I want to pack the project into a zip-file and have the build date time (or the current date time) as part of the zip-filename. $(TargetDir)\7za.exe a release.zip * So it would be nice to incorporate the date into the release.zip, something like release-14-3-2010-22_56.zip Is it possible to define custom post-build macros? ...

How to make the first invocation of a macro different from all the next ones ?

Hi, that may be really simple but i'm unable to find a good answer. How can I make a macro representing first a certain value and then a different one ? I know that's nasty but i need it to implicitly declare a variable the first time and then do nothing. This variable is required by other macros that i'm implementing. Should i levera...