Jump to content
Macro Express Forums

Processing Text Files And Looping


awilson

Recommended Posts

I have just started to use Macro Express so forgive me if this these are simple questions :blink:

 

I have a list of domain names that I want to register with a registrar - I have recorded the screen captures and now I wish to add a way to process either a text file line by line or copy and paste from a text file line by line in the middle of this script.

 

I will process only 1 domain name at a time therefore the loop needs to be the whole script and the text file or copy paste section.

 

How could I accomplish this?

 

 

My second question is - I have seen script examples on this forum - is it possible to copy and paste these into the Scripting Editor as most do not have the Direct Scripting text?

 

TIA

 

Alistair

Link to comment
Share on other sites

Alistair:

I wish to add a way to process either a text file line by line or copy and paste from a text file line by line

Try either the Text File Begin Process or the ASCII File Begin Process commands. Use the Text File Begin Process command if you want the complete content of each line from the text file placed in a single variable. Use the ASCII File Begin Process command if each line in the text file contains multiple 'fields' that you want placed in separate variables.

 

There are examples in the help topic for each of these commands that demonstrate their use.

 

is it possible to copy and paste these into the Scripting Editor as most do not have the Direct Scripting text?

Examples in the forum that are not in "Direct Scripting Text" (or the format used by the Direct Editor) cannot be copied and pasted into your macro file. When I include a sample macro, I generally use the Scripting Text because it is clearer for a person to read and understand. If I feel further explanation is needed I describe how the options within certain commands are set. Others in this forum include both the Scripting Editor and Direct Editor formats.

 

You can copy the Direct Editor format and paste it into your macro file but you need to make sure the 'separator' characters are not removed.

Link to comment
Share on other sites

Hu Again,

 

Maybe I should explain what I am trying to do - I am trying to create a macro to register .com Domain Names at Godaddy for $5.19 - Normally I would bulk register but the only way to get the 5.19 domain names is to register singularly. This is why I need the macro.

 

Well I managed to get this far:

 

 

<SPEED:00001><WSIZE:01288,01002"CURRENT"><MSD:0871><MMW2:148,959><MSD:0010><MMW2:152,953><MSD:0009>
<MMW2:160,944><MSD:0010><MMW2:167,933><MSD:0009><MMW2:177,918><MSD:0010><MMW2:184,904><MSD:0009>
<MMW2:193,884><MSD:0010><MMW2:203,852><MSD:0009><MMW2:208,829><MSD:0010><MMW2:217,795><MSD:0009>
<MMW2:221,766><MSD:0010><MMW2:223,730><MSD:0009><MMW2:223,703><MSD:0010><MMW2:223,680><MSD:0009>
<MMW2:223,659><MSD:0010><MMW2:219,642><MSD:0009><MMW2:216,629><MSD:0010><MMW2:214,619><MSD:0009>
<MMW2:211,610><MSD:0010><MMW2:209,608><MSD:0009><MMW2:208,608><MSD:0170><MMW2:210,609><MSD:0010>
<MMW2:217,614><MSD:0009><MMW2:225,619><MSD:0010><MMW2:231,620><MSD:0009><MMW2:237,620><MSD:0010>
<MMW2:246,620><MSD:0009><MMW2:258,618><MSD:0010><MMW2:270,614><MSD:0010><MMW2:287,609><MSD:0010>
<MMW2:303,603><MSD:0009><MMW2:317,596><MSD:0010><MMW2:332,589><MSD:0009><MMW2:345,578><MSD:0010>
<MMW2:357,567><MSD:0009><MMW2:368,555><MSD:0010><MMW2:377,542><MSD:0009><MMW2:383,528><MSD:0010>
<MMW2:386,518><MSD:0019><MMW2:388,509><MSD:0009><MMW2:388,501><MSD:0010><MMW2:388,495><MSD:0009>
<MMW2:385,487><MSD:0010><MMW2:384,483><MSD:0009><MMW2:380,478><MSD:0010><MMW2:378,475><MSD:0009>
<MMW2:376,473><MSD:0010><MMW2:375,472><MSD:0009><MMW2:373,471><MSD:0010><MMW2:372,469><MSD:0009>
<MMW2:370,468><MSD:0010><MMW2:368,467><MSD:0009><MMW2:367,466><MSD:0010>

 

Then I insert the the text file process command - this takes the top domain in a list and search from the file and put it into a domain availabilty search box.

 

Then I complete the checkout ... (just mouse clicks)

 

Then it loops to start again on the next domain from the beginning.

 

>>>

 

The problems I have are with the settings for the text file process and the looping from the beginning ... any suggestions?

 

Anybody will be welcome to this Macro if I siceed in doing it :)

 

Thanks

 

Alistair

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...