'************************************************* ****************
'* This sub is called immediatly after plugin is loaded and
'* enabled, its only called once.
'* pluginDataPath = contains where the plugin should store any of
'* its WRITEABLE\SETTINGS data to.
'*
'* NOTE: The plugin is required to create this directory if needed.
'*
'************************************************* ****************
Public Sub Initialize(ByRef pluginDataPath As String)
On Error Resume Next
' pluginDataPath will contain a USER Profile (my documents) folder path
' suitable for storing WRITEABLE settings to
' this would make your plugin OS compliant (VISTA and onward)
' not to mention, its proper programming, user data should NOT be stored in "Program Files"
'
' example (typical vista): "C:\Users\Username\Documents\RideRunner\Plugins\My Plugin\"
'
' App.path will be the path of the ACTUALL LOADED .dll (not recomend for any writes)
'
' uncomment code below if u need the directory
'
If Directory.Exists(pluginDataPath) = False Then Directory.CreateDirectory(pluginDataPath)
MainPath = pluginDataPath
'Initiate a timer.
RefreshInfo = New Timer()
RefreshInfo.Interval = 5000
RefreshInfo.Enabled = True
RefreshInfo.AutoReset = True
RefreshInfo.Start()
Bookmarks