aloha Posted August 25, 2007 Report Share Posted August 25, 2007 Hi, I'm trying to figure out how to pull random lines of text from a text file and paste it into an open window. I found a forum post that seemed to try and describe it, but the link to the .zip file with the example no longer works. Can someone give me an example on how to do this? (here is the forum post:) http://pgmacros.com/community/index.php?sh...&st=0entry140 Quote Link to comment Share on other sites More sharing options...
Cory Posted August 27, 2007 Report Share Posted August 27, 2007 The link still works for me. Basically all Joe is doing in that example is copying the number of lines in the text file and then settign a random number between 1 and the number of lines. I wasn't looking closely how he did it but I would rerun the repeat but where it asks which number to start at you could have it use this randome integer and process only one record. Quote Link to comment Share on other sites More sharing options...
aloha Posted August 31, 2007 Author Report Share Posted August 31, 2007 I understand the concept, but I'm pretty new to Macros and I don't know how to implement the idea. I have recreated the basic set up, I just don't know what to put for the settings (when you actually click on the operation, there are some more settings that pop up, and I'm not sure where they should be set at) For example, all the settings within the "Text File Begin Process" command. Something in my settings is off, because the program won't run correctly. It doesn't post a random line, always the first line only. Quote Link to comment Share on other sites More sharing options...
aloha Posted August 31, 2007 Author Report Share Posted August 31, 2007 lol. nevermind. I got the example file to download finally. I read the post about how to correctly download from this forum. My computer kept wanting to save the file as "index.php" Quote Link to comment Share on other sites More sharing options...
Cory Posted August 31, 2007 Report Share Posted August 31, 2007 I'm glad you got it figured out! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.