Page 1 of 1

Create a Restore Point

PostPosted: Tue May 18, 2010 12:00 pm
by Alex
Hello,

Is it possible to create a restaure point with Neobook?

Thanks


Alex

PostPosted: Wed May 19, 2010 10:17 am
by Neosoft Support
Do you mean a bookmark?

Use the code below to create a bookmark:

Code: Select all
SetVar "[Bookmark]" "[PageTitle]"
FileWrite "[PubDir]bookmark.dat" "1" "[Bookmark]"
AlertBox "BookMark" "BookMark Created on [PageTitle]."


Basically this action writes the name of the current page to a data file and displays a message.

The key to making the bookmark work, is the action assigned to the publication's first page or startup action which will execute each time the publication loads. For example:

Code: Select all
If "[BookMark]" "=" ""
  FileRead "[PubDir]bookmark.dat" "1" "[BookMark]"
  If "[BookMark]" ">" ""
    GotoPage "[BookMark]"
  EndIf
EndIf


This action checks the data file for a bookmark and reads that information into a variable called [BookMark]. If the bookmark is valid then we go to that page.

PostPosted: Wed May 19, 2010 10:53 am
by Alex
Hi Dave,

Ha yes, sorry, I mean a Windows Restore Point. Is it possible to create one automaticaly? (with vbs maybe)?

Thanks


Alex

PostPosted: Wed May 19, 2010 11:20 am
by Alex
Hi 70mach1,

Thank you for your answer.

I already tried this code, but it doesn't work with Neobook's call action for the VBS. Is it normal?

Thanks


Alex

PostPosted: Thu May 20, 2010 12:52 pm
by Alex
Hi,

I tried and it doesn't work. Does any body else tried it? I am on Vista.

Thanks


Alex