Problem running macro
Posted: Wed Jul 15, 2009 6:19 pm
Hi,
I have the following lines in an extract of verilog code:
/////////////////
in1,
in2,
in3,
in4,
out
/////////////////
which I'm attempting to transform (using a multiple playbacks of recorded keystroke macro) into the following:
/////////////////
.in1(in1),
.in2(in2),
.in3(in3),
.in4(in4),
.out(out)
/////////////////
The macro I have recorded, to attempt to do this, is as follows:
function key_macro()
screen_update_disable()
MoveLineHome()
print(".")
MarkBlockSet()
MoveWordNext()
MarkBlockReset()
MarkCopyEx()
print("(")
MarkPasteEx()
print(")")
MoveLineDown()
screen_update_enable()
screen_update()
end
key_macro() -- run the macro
However, what I'm actually getting is:
/////////////////
.in1(in1),
.in2(),
.in3(),
.in4(),
.out()
/////////////////
I've tried changing the Ctrl+V keyboard shortcut from MarkPasteEx to MarkPasteSmart to MarkPaste, with differing results. However, none of these seem to give the desired result. I'd appreciate any insight on this.
Regards,
Ciaran.
I have the following lines in an extract of verilog code:
/////////////////
in1,
in2,
in3,
in4,
out
/////////////////
which I'm attempting to transform (using a multiple playbacks of recorded keystroke macro) into the following:
/////////////////
.in1(in1),
.in2(in2),
.in3(in3),
.in4(in4),
.out(out)
/////////////////
The macro I have recorded, to attempt to do this, is as follows:
function key_macro()
screen_update_disable()
MoveLineHome()
print(".")
MarkBlockSet()
MoveWordNext()
MarkBlockReset()
MarkCopyEx()
print("(")
MarkPasteEx()
print(")")
MoveLineDown()
screen_update_enable()
screen_update()
end
key_macro() -- run the macro
However, what I'm actually getting is:
/////////////////
.in1(in1),
.in2(),
.in3(),
.in4(),
.out()
/////////////////
I've tried changing the Ctrl+V keyboard shortcut from MarkPasteEx to MarkPasteSmart to MarkPaste, with differing results. However, none of these seem to give the desired result. I'd appreciate any insight on this.
Regards,
Ciaran.