473,513 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

macro with user input


Hello

I am building a macro using edit-kbd-macro.

******************************
C-x C-f ;; find-file
E ;; self-insert-command
TAB ;; c-indent-command
T ;; self-insert-command
2*TAB ;; c-indent-command
4 ;; self-insert-command
TAB ;; c-indent-command
RET ;; newline
+9 ;; self-insert-command
RET ;; newline
v ;; self-insert-command
C-x C-f ;; find-file
main.cpp ;; self-insert-command * 8
RET ;; newline
now, what that says is make a directory in this location and name it 9
now, how do I choose a name dynamically while the macro is running?

what I did

******************************
C-x C-f ;; find-file
E ;; self-insert-command
TAB ;; c-indent-command
T ;; self-insert-command
2*TAB ;; c-indent-command
4 ;; self-insert-command
TAB ;; c-indent-command
RET ;; newline
+
C-x q ;; self-insert-command
RET ;; newline
v ;; self-insert-command
C-x C-f ;; find-file
main.cpp ;; self-insert-command * 8
RET ;; newline

but this puts 'E' at the end of the path and I feel it will not
work. any help is appreciated.

thanks
LocalWords: RET cpp

Aug 30 '05 #1
3 1384
Baloff wrote:
I am building a macro using edit-kbd-macro.

******************************
[...blah...]
now, what that says is make a directory in this location and name it 9
now, how do I choose a name dynamically while the macro is running?

[...]


Is there any reason why you are asking what looks like an EMACS question
in a C++ _language_ newsgroup? Do you need help locating an emacs NG?
Aug 30 '05 #2
Baloff wrote:

Hello

I am building a macro using edit-kbd-macro.

[snip]

Emacs issues are off topic here. You will find plenty of people knowing
about emacs just across the street at [gnu.emacs.help].
Best

Kai-Uwe Bux
Aug 30 '05 #3
Victor Bazarov <v.********@comAcast.net> writes:
Baloff wrote:
I am building a macro using edit-kbd-macro.
******************************
[...blah...]
now, what that says is make a directory in this location and name it
9
now, how do I choose a name dynamically while the macro is running?
[...]


Is there any reason why you are asking what looks like an EMACS question
in a C++ _language_ newsgroup? Do you need help locating an emacs NG?


yes, the reason is using gnus, the pointer moves to the next line in
the Group buffer and not paying attention, I post here thinking it is
the emacs group. sorry, I will be very careful as this is the second
time it happens. my apologies.
Aug 31 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1498
by: Fritz Bosch | last post by:
We are in the process of refactoring our GUI-based test application for radio equipment and are rewriting a significant part in Python. The new architecture will substantially be based on the...
3
3697
by: VbUser25 | last post by:
hi.. i have a form i accept some user inputs in the form. there is a link on the form from where i open the excel file in the same browser (not in a new page...simply using a href. i am also...
1
1746
by: Jo K. | last post by:
I have the following fields in a table. -JobNo (primary key) -Assessor (combo box containing only two names to choose from ie. John, Bill) I have created two seperate reports which have exactly...
1
1471
by: Peter | last post by:
Hi in Clipper and VisualObjects is a Macro Operator available. This opeartor evaluate Code stored in a String by the runtime-system. e.g .... cTest as string cTest := "2+3"
12
6487
by: Laurent Deniau | last post by:
I was playing a bit with the preprocessor of gcc (4.1.1). The following macros expand to: #define A(...) __VA_ARGS__ #define B(x,...) __VA_ARGS__ A() -nothing, *no warning* A(x) -x ...
3
16183
by: swb76 | last post by:
Hi, I have 6 queries in Access that run great. They need to be run in sequence with the first 5 queries writing to tables and the sixth one pops up the final results in datasheet view. Now, how...
3
1404
beacon
by: beacon | last post by:
Hi, I'm using Access 2003 and I would like to be able to prompt the user to close Access altogether from a vbyesnocancel button, but the only way I'm aware of is to use the close macro. Is...
1
1664
by: =?Utf-8?B?TXJOb2JvZHk=?= | last post by:
I want to do something similar to what some macro tools do, where they perform mouse/keyboard events on the user's machine , while intercepting the user's current keyboard/mouse events so that it...
4
3996
by: saswatdash83 | last post by:
Hi All, I want to implement a macro which will toggle a bit in a byte.The user will give input from keyboard. toggle(number,bit to be toggled) Number,bit to be toggled will be input from...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.