1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do you do this in Zennoposter?

Discussion in 'General Programming Chat' started by WhiteBoi360, May 29, 2012.

  1. WhiteBoi360

    WhiteBoi360 Regular Member

    Joined:
    Mar 14, 2012
    Messages:
    241
    Likes Received:
    43
    Location:
    Tennessee
    I'm new to bots/macros. Just fiddling around with a few custom templates figuring all this out on the Demo version for now until I get the hang of things then probably gonna buy it.

    Anyways, I want to complete a field in a form with text from a file. Ok, I know how to do that.. but how do I randomize what it selects from that file?

    Example: I have a .txt file with nothing but a few zip codes in it. And I want it to randomly select one of those. But I can't figure it out.. it keeps selecting the first zip code thats in the file.


    I've found a few videos and things on Zennoposter but couldn't quite find this exact tutorial anywhere. So sorry if I missed it.

    I also have a couple more questions on how to do 1 or 2 more things similar to the above mentioned.. so if anyone wants to PM me and can answer those.. then when I buy Zennoposter I'll use your refferal in return

    Thanks in advance!
     
  2. freelander

    freelander Registered Member

    Joined:
    Jan 8, 2011
    Messages:
    61
    Likes Received:
    7
    the macro should look like below

    {File.Getstring-|-\Resources\email.txt-|-random-|-false-}


    random=it will take random line on your txt file
    false= the line that been taken will not be delete
    true= the line will be delete

    macros.jpg
     
    • Thanks Thanks x 1
    Last edited: May 30, 2012
  3. nuaru

    nuaru Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 18, 2010
    Messages:
    230
    Likes Received:
    206
    Home Page:
    Please contact our support in case you got any issues:
    skype: support_zennolab
    email: support@en.zennolab.com