Hello Michael,
On Monday, October 18, 2004 at 5:41:17 PM Michael [MLW] wrote:
[example]
MLW> Everywhere there is a %_1, I can put a number of hours to report on.
MLW> I currently use it like this:
MLW> %QT("spamcounthours",24)
MLW> and it works just fine. I would like a way where I can put the hours
MLW> it before the message is sent, or put the hours in and press
MLW> ctrl-space and see an update.
Ahhh, OK.
Beside the "%InputBox" macro, which surely provides a working and
reliable solution, you could make use of '%Clipboard' macro:
write '12', select it, copy to clipboard, overwrite it with QT name,
hit <Ctrl>+<Space> and let your invoking QT be like this:
,----- [ ]
%SetPattRegExp="(\d+)"%-
%_num='%RegExpMatch(%ClipBoard)'%-
%If:%_num=="":%_num="24":""%-
%%QT("spamcounthours", %_num)
`-----
This can, for sure, be even simplified ... somehow. But it's a quick
and dirty solution if one get's annoyed by an InputBox popping up on
every reply or new message :-)
--
Regards
Peter Palmreuther
(The Bat! v3.0.2.1 on Windows XP 5.1 Build 2600 Service Pack 2)
I was gratified to be able to answer promptly, and I did. I said I
didn't know.
________________________________________________
Current version is 3.0.1.33 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html