Falc0 Posted June 28, 2004 Share Posted June 28, 2004 I really wasn't sure what to call this. I have made an AutoPoster for a site and I want to know if it can number stuff without me having to make a new $vWord for it. Like on post 1 it can type number 1. For post 2..type number 2. Is there any simple way of doing this or am I going to have to take the hard way? RK-DemonSpawned Link to comment Share on other sites More sharing options...
pekster Posted June 28, 2004 Share Posted June 28, 2004 Two methods for two cases. The first, if you only need to start numbering by session. This means that you want to start over at 1 next time you start your script. Use a while loop to keep track of the times you have ran the loop, and increase the variable by one each time. If you know how many times you want it to go, just use a For loop instead. $time = 1 While 1 Send("This is my post number " & $time) $time = $time + 1 ;you probably want a way out of the loop ;maybe a pause, or other code here, as required WEnd Now with a For loop example: For $time = 1 To 100 ;do this loop 100 times Send("This is my post number " & $time) ;other code here Next Now if you wanted to keep track, you can use the same code as above, but you would import the previous time from an ini file and save it when you were done. If using my 2nd example with the For loop, you would have to set the $time variable to whatever the input from the Ini read was so that you don't always start at 1, and then go to whatever that ini read was plus 100 (or however many you want it to do for you.) [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. Link to comment Share on other sites More sharing options...
Falc0 Posted June 28, 2004 Author Share Posted June 28, 2004 Once again. I thank you pekster RK-DemonSpawned Link to comment Share on other sites More sharing options...
tutor2000 Posted June 28, 2004 Share Posted June 28, 2004 Once again. I thank you pekster The man knows his stuff and is willing to helpGood comboRick Link to comment Share on other sites More sharing options...
pekster Posted June 28, 2004 Share Posted June 28, 2004 The man knows his stuff and is willing to helpGood comboAnd I'm unemployed at the moment. That's a very big plusAt least when it comes to time to provide support [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. Link to comment Share on other sites More sharing options...
tutor2000 Posted June 28, 2004 Share Posted June 28, 2004 And I'm unemployed at the moment. That's a very big plusAt least when it comes to time to provide support The willingness to help is what is important (notice the handle lol)If you think it would help click on my sig file. It couldn't hurt that's for sureMy OCB is helping Rick Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now