Jump to content
Ketarin forum

Rougefix


narok90
 Share

Recommended Posts

I am a new user and i was wandering how i would tell ketarin to download the file from

 

http://www.internetinspiration.co.uk/roguefix.htm

 

the file link is http://www.internetinspiration.co.uk/downloads/roguefix_2.243.bat

 

but the version changes all of the time... I know it can do it im just not sure how. I have dug arround and couldnt figure it out. Maybe its so simple im missing it.

 

any help would be great.

 

thanks in advance

Link to comment
Share on other sites

Narok,

 

Welcome!

 

1st stab at it (blunt and straight forward):

1) press add application

2) press button variables

3) add variable (press the + button at the bottom left hand side

4) give the variable a name (i normally use 'version')

5) add '

http://www.internetinspiration.co.uk/roguefix.htm

' in the 'contents from URL link and press the 'Load' button

6) enter ' (current version' in the 'search within contents' field and press the find button

 

the cursor will now be at the line which starts with

<b>a)</b> Roguefix.bat (current version 2.243 updated 23rd April 09) <b><a href="downloads/roguefix_2.243.bat">download</a>

 

7) select the 'current version ' (mind the space at the end) part and press 'use selection as start'

8) select ' updated' and press the 'use selection as end'

 

both selected parts should turn blue, the version should be in red now

 

9) press ok

10) in download URL enter

http://www.internetinspiration.co.uk/downloads/roguefix_2.243.bat

'

11) replace the '2.243' by '{version}

the result should be

http://www.internetinspiration.co.uk/downloads/roguefix_{version}.bat

 

12) enter a location to save the file to in the save to file/save to folder field

13) press ok

 

14) update and be amazed!

 

[EDIT]

explanation (for the crucial steps you are probably looking for):

step 5 enables the rule to load a particular page where it can 'scrape' the version information from

in step 6 we tell the rule to look for 2 particular strings on that page. If a match is found, the text in between those 'anchors' is stored in a variable we have named 'version'.

 

in step 10 and 11 we take the hardcoded URL and we soften it up by replacing the version number by the reference to the variable (in this case {version}.

 

Therefor every time the developer updates the website with the latests version, you'll get it!

Pitfalls...

a) If they decide to change the text preceding the version number or after it. It will break. So choose your anchors carefully.

B) the link is hardcoded and might change as well.

 

There are more sophisticated ways to do this but it's a good way to get started

 

[/EDIT]

 

R

Edited by dutchclimber
Link to comment
Share on other sites

thanks dutchclimber....

 

got it to work and it works Great!!!

 

i read the cdburnxp tutorial and i dont guess it clicked. But i understand it now.

 

Man it is really simple... I was tring to make it harder than it was.

 

Thank You!!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.