Hi:
I need a macro that extracts pairs of number from a string that looks like this:
n1-m1,n2-m2,n3-m3,n4-m4 (it could be longer)
where n1,m1,n2,m2,... are numbers from 0 - 15. How can I go about getting the pairs (n1,m1), and (n2,m2), (n3,m3), etc inside my macro? I will need to use each pair once, after which I can, if needed,...
Hi I am trying to create a macro which cuts the selected row if it matches a certain criteria and has to paste it to a different sheet from the same workbook. Could Some please help me?
...
Hello all,
Well, I'm using Google Chrome as my web browser and for some reason I can't save my username and password for my university portal account. So, each time I log in I have to enter it again. It's not that tiring I know, but I was wondering if there is some kind of program to execute so as it automatically fills the username fie...
. I have a keyboard that does macro's (comfortkeyboard)
and it's convenient to remember long passwords;
but it doesn't have an SD card for backup;
and, that brand of keyboard is too expensive .
. to replace it, some adapter device
(or fully software solution and a cable hack?)
should connect a laptop's {ethernet, usb}
to another computer...
How to make live template in Visual studio 2010, I don't know is it really live template or macro, but what I wan't to do is when I'm write code and when I type let's say -> in, and press space, that program automatically insert code that look like this -> #include <>.
In c++ builder for that purpose we use xml file who is automatically ...
Hi, i've recently settled on a new format style for my code and want to replace the existing code. The only problem is there's 100's if not 1000's of files in my solution and i don't fancy doing each one individually.
I was wondering how to create a macro to open every file in the solution that has the .cs file extension and simply sel...
I'm using preprocessor macros to declare some repetitive variables, specifically:
QuitCallbackType quitCallback;
LossCallbackType lossCallback;
PauseCallbackType pauseCallback;
KeyCallbackType keyCallback;
MouseCallbackType mouseCallback;
I'd like to use a preprocessor macro to do it, a la
CREATE_CALLBACK_STORAGE(quit)
CREATE_CALLBAC...
So say I have the following very simple macro, along with a bit of code to output it:
#define SIMPLEHASH(STRING) STRING[1] + STRING[2] + STRING[3]
std::cout << SIMPLEHASH("Blah");
This outputs 309, and if you view the assembly you can see:
00131094 mov ecx,dword ptr [__imp_std::cout (132050h)]
0013109A push 135h
...
What I do now:
I use the m4 macro package to generate .html files.
I have macros defined in one file (macros.m4), with things like:
define(`_imt_start_clip', `<a bunch of html code>')
And I have another file (videos.m4) that uses the macros:
_imt_start_clip(`Persons name', `link to video clip', `name of jpg file')
To generate my we...
Here is my code,
For Each pj In wdApp.Application.VBE.VBProjects
x = pj.FileName
y = pj.Protection
If x <> "" Then
If y <> "1" Then
For Each vbcomp In pj.VBComponents
For i = 1 To vbcomp.CodeModule.CountOfLines
newMacro = vbcomp.CodeModule.ProcOfLine(Lin...
I'd rewritten a simple C++ program using unix as a variable name. But the program compilation failed.
#include <iostream>
int main() {
int unix = 1;
return 0;
}
After searching a lot on the internet I got to this website which helped me by saying that unix is predefined macro equal to 1.
I want to know list of all suc...
Possible Duplicate:
How, exactly, does the double-stringize trick work?
I came across this the other day - can someone tell me how it works?
A simple way to stringize a C
preprocessor constant, in all
compilers conforming to ANSI C (or any
C++ compiler).
Suppose you have a header file
containing a constant li...
If I use the following code:
for (int i = 0; i < text.Length; i++)
{
char c = text[i];
Keys k = (Keys)(byte)c;
MessageBox.Show(c.ToString() + "|" + k.ToString());
}
I can get a correct conversion for uppercase letters only. The problem is, I need to be able to replicate lower case characters as well, an...
I'm trying to generate an easy macro for a Rails app that uses Devise for authentication. Basically I want to ensure that when a user accesses a page that requires authentication, they're redirected to the login page. So something like this:
it_requires_authentication_for :index, :new, :create, :update
The desired results here shoul...
I find I waste a lot of time closing and reopening sets of files so I'd like to improve my VIM macro for loading and saving the session to support multiple sessions.
I'd like for it to prompt for a string value, so that I could press my shortcut, then type in for example "foo", and have my macro save the session to .foo (so I also need ...
I'm trying to create a basic macro recording/playback system. If I wanted to select an open application (like notepad) to bring it to the front for input, how would I go about calling it by name or some other referanceable attribute?
...
I have a method that gets called into a new thread like so:
if (!_isPlaying)
{
_playBackThread = new Thread(PlayMacroEvents);
_playBackThread.Start();
...
}
The method looks like:
Process proc = Process.GetProcessesByName("notepad").FirstOrDefault();
if (proc != null)
{
...
Software EXCEL 2003, 11.6560.6568, SP2.
I've created a
"Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)"
macro in a workbook to check that certain cells are populated before I allow the workbook to be saved. "Cancel" is set to true to prevent the workbook being saved when certain validation tests are fa...
Possible Duplicate:
is there an equivalent of std::swap() in c
Hi folks,
I was attempting a problem to write a generic swap macro in C and my macro looks like this:
#define swap(x,y) { x = x + y; y = x - y; x = x - y; }
It works fine for integers and floats but I am unsure if there is any catch in it. What if by generic ma...
Hi,
Can any one please help me. I want to write a maco in Outlook session through which I want to schedule a saved mail message to be sent at a specific date as mentioned by me.
I require to send repeatedly some action plan message to various receipient untill the time the receipient reply to the same.
Thanks in Advance,
...