Hallo Assad,

On Sun, 31 Aug 2008 10:36:45 +0400GMT (31-8-2008, 8:36 +0200, where I
live), you wrote:

RO>> Place your 700 cookies in the cookie.txt file and TB will pick one
RO>> randomly every time you call the macro. No need for an extra
RO>> randomiser.

AT>   In my cookie.txt file, I have included a macro. The cookie would
AT>   return the macro formula instead of executing the macro. How can I
AT>   possibly solve this please? Thanks.

As Thomas wrote you, cookies are seen as text, compare %cookie with
the %put macro.
However I see two options that might work for you:
1 Set every cookie in a separate file, list those files in your
  cookie.txt and call your cookie like this:
  %QInclude="%Cookie='%cookie'txt'"
2 Set all your cookies in a single file
  Use the %Run macro from the mymacros plugin to call an external
  randomiser like kookiejar that Gary mentioned in
  <mid:[EMAIL PROTECTED]> to store a signature in a
  file called cookie.tpl
  And call that cookie.tpl as a template with %Qinclude
As I wrote those options 'might' work, I didn't try them, but I think
they'd both do the job.

Now that I've finished this message I thought of another option.
3 Create an outgoing filter that triggers on every message, enable
  'continue processing with other filters' and set it as first filter,
  so it will be executed for every message.
  Set as action export to a file called cookie.tpl and set the export
  template as %cookie="cookie.txt"
  In the messages you want to use one of your cookies, be they text or
  macro, you use the macro %QInclude="cookie.tpl"
  Of course you need to take care of the proper paths in your macros,
  but this is guaranteed to work as you want. No third party programs,
  no big amount of separate cookie files or whatever.

-- 
Groetjes, Roelof

A noisy exhaust to some almost amounts to a mating call.
http://www.voormijalleen.nl/
The Bat! 4.0.28.4
Windows Vista 6.0 Build 6001 Service Pack 1
3 pop3 accounts
OTFE enabled
Quad Core 2.4GHz
4 GB RAM

Attachment: pgp6woTmzn05I.pgp
Description: PGP signature

________________________________________________
Current version is 4.0.24.0 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to