[Main]
Title=Basic PluginCache Final
Type=Plugin
Author=Lancelot
Description='Basic PluginCache Final' plugin to create cache.
Credits=http://TheOven.org
Version=016
Download_Level=0
Level=2
Selected=True
Mandatory=True
NoWarning=False
Contact=http://TheOven.org
Date=2017.02.04
Depend=
Disable=
Web1=http://gena.cwcodes.net/Projects/Gena/Basic/Xerox/tt_PluginCache_Basic_Final.script
Web2=http://win10se.cwcodes.net/Projects/Win10PESE/Shell/tt_PluginCache_Basic_Final.script
Web3=http://win81se.cwcodes.net/Projects/Win8.1SE/Shell/tt_PluginCache_Basic_Final.script
Web4=http://w8pese.cwcodes.net/Projects/Win8PESE/Shell/tt_PluginCache_Basic_Final.script
Web5=http://w7pese.cwcodes.net/Projects/Win7PESE/Shell/tt_PluginCache_Basic_Final.script
CANCEL_Web6=http://yomi.cwcodes.net/Yomi/Shell/tt_PluginCache_Basic_Final.script
CertifiedBy=
Certification=
HistoryNotes01=Plugin here as "Create Cache" point.
HistoryNotes02="Basic PluginCache" disabled -> "Basic PluginCache Final" does nothing
HistoryNotes03=--> so set to mandatory to easily control via "Basic PluginCache"
History001=Lancelot 2016.10.29 Plugin created
History002=Lancelot Added to servers - Date:2016.10.30
History005=Lancelot Improvments x 2 - Date:2016.10.30 - Date:2016.11.01
History006=Lancelot Mandatory=True to easily control via "Basic PluginCache" - Date:2016.11.01
History008=Lancelot Added to Win10PESE server // Fixed SE Level - Date:2016.11.03
History009=Lancelot Improved DL button - Date:2016.11.04
History010=Lancelot minor things - Date:2016.11.04
History011=Lancelot Added Cache_Keep_NumberBox -> Keep total cache files // Default Gena: 10 SE: 2 - Date:2016.11.06
History012=Lancelot Added to all SE servers - Date:2016.11.08
History014=Lancelot Hide Cache_Keep_Bevel Cache_Keep_NumberBox Cache_Keep_CheckBox -> have no use now (Probably never) - Date:2016.11.11
History015=Lancelot Delete Basic_PluginCache_Extract.ini to get green play buttons of Basic Plugins operational after build - Date:2016.11.12
History016=Lancelot Removed from Yomi - Date:2017.02.04

[Info]
Plugin works with  "Basic PluginCache" plugin

[Interface]
Button_Download=,1,8,403,21,24,24,DownloadXXX,DoubleJDesignRavenna3dArrowDown0016016.bmp,False,False,_DownloadXXX_,False,"__DOWNLOAD Plugin"
Button_Upload=,1,8,403,-1,24,24,UploadXXX,BokehliciaCaptivaSoftwareupload0016016.bmp,False,False,_UploadXXX_,False,"__UPLOAD Plugin (Admins Only)"
Button_CompareEdit=,1,8,426,-1,24,24,CompareEditXXX,AmperossQetto2Move0016016.bmp,False,False,_CompareEditXXX_,False,"__DOWNLOAD and Compare with an Editor"
TextLabel_Info="Plugin controlled by 'PluginCache Basic' plugin.#$x#$xSE: Build\PluginCache Basic -> Enable 'Basic PluginCache'#$xGena: Basic\PluginCache Basic -> Enable 'Basic PluginCache'",1,1,2,69,447,76,10,Bold
WebLabel_Plugin="Plugin Page",1,10,338,4,55,18,http://TheOven.org/index.php?board=9
Cache_OpendirButton=,1,8,82,6,20,20,Cache_Opendir,opendir.bmp,False,False,_Cache_Opendir_,False,"__Open Cache Folder"
Cache_Delete_Button="Delete Cache",1,8,23,29,80,25,Cache_Delete,_Cache_Delete_,False
Cache_Keep_Bevel=pBevel1,0,12,243,2,92,50
Cache_Keep_NumberBox=pNumberBox1,0,2,283,25,40,22,2,1,999999,1
Cache_Keep_CheckBox="Keep Cache:",0,3,247,4,82,18,True

[Variables]

[Test]
//For TesTS ONLY
//FileCreateBlank,%ProjectTemp%\Basic_PluginCache_Create.ini
//IniWrite,%ProjectTemp%\Basic_PluginCache_Create.ini,Info,Cache_Create,True
//For TesTS ONLY

[Process]
Set,%t%,0
If,ExistFile,%ProjectTemp%\Basic_PluginCache_Create.ini,IniRead,%ProjectTemp%\Basic_PluginCache_Create.ini,Info,Cache_Create,%t%
Call,FileDelete,%ProjectTemp%\Basic_PluginCache_Create.ini
If,%t%,Equal,True,Run,%ScriptFile%,Process_%OSFamily%
Call,FileDelete,%ProjectTemp%\Basic_PluginCache_Extract.ini

[Process_NT5]
Run,%ScriptFile%,Process_A,"Basic\1-5 PluginCache_Basic"

[Process_NT6]
Run,%ScriptFile%,Process_A,"Build\1-5 PluginCache_Basic"

[Cache_Opendir]
Call,OpenDir,%BaseDir%\Workbench\PluginCache\%ProjectName%

[Process_A]
If,ExistFile,"%ProjectDir%\#1.Script",Exec,"%ProjectDir%\#1.Script",Cache_Create
If,Not,ExistFile,"%ProjectDir%\#1.Script",Run,%ScriptFile%,Process_B,#1

[Process_B]
If,ExistFile,"%ProjectDir%\#1.Link",Run,%ScriptFile%,Process_L_B,#1

[Process_L_B]
IniRead,"%ProjectDir%\#1.Link",Main,Link,#2
If,ExistFile,#2,Exec,#2,Cache_Create
If,Not,ExistFile,#2,Run,%ScriptFile%,Process_L_C,#1,#2

[Process_L_C]
StrFormat,Ctrim,#2,\,#2
If,ExistFile,%BaseDir%\#2,Exec,%BaseDir%\#2,Cache_Create
If,Not,ExistFile,%BaseDir%\#2,Run,%ScriptFile%,Process_L_D,#1,#2

[Process_L_D]
Call,Echo,"'Basic PluginCache' Plugin NOT FOUND - #1 - Halt",Warn,,MessageError,,Halt

[Cache_Delete]
If,ExistDir,%BaseDir%\Workbench\PluginCache\%ProjectName%,Begin
Set,%SFName%,"1-5 PluginCache_Basic"
ShellExecute,Hide,cmd.exe,"/C del /q /f #$q%BaseDir%\Workbench\PluginCache\%ProjectName%\%SFName%*.*#$q&del /q /f /A:R /A:H /A:S /A:A #$q%BaseDir%\Workbench\PluginCache\%ProjectName%\%SFName%*.*#$q"
End

[AuthorEncoded]
Full-Bucket6464.ico=8354,11139
Logo=Full-Bucket6464.ico

[EncodedFile-AuthorEncoded-Full-Bucket6464.ico]
lines=2
[encoded data, 11145 characters]

[InterfaceEncoded]
DoubleJDesignRavenna3dArrowDown0016016.bmp=622,830
BokehliciaCaptivaSoftwareupload0016016.bmp=676,902
AmperossQetto2Move0016016.bmp=893,1191
opendir.bmp=571,762

[Folder]

[DownloadXXX]
Call,DownloadXQ
If,%OSFamily%,Equal,NT5,Run,%ScriptFile%,Settings_Default_Gena
If,%OSFamily%,Equal,NT6,Run,%ScriptFile%,Settings_Default_SE
StrFormat,Split,%ProjectDir%,\,0,%ProjectDirNo%
StrFormat,Split,%ProjectDir%,\,%ProjectDirNo%,%ProjectFolderName%
If,ExistSection,%ScriptFile%,Settings_Default_%ProjectFolderName%,Run,%ScriptFile%,Settings_Default_%ProjectFolderName%

[UploadXXX]
Call,UploadXMultiQ
If,%OSFamily%,Equal,NT5,Run,%ScriptFile%,Settings_Default_Gena
If,%OSFamily%,Equal,NT6,Run,%ScriptFile%,Settings_Default_SE
StrFormat,Split,%ProjectDir%,\,0,%ProjectDirNo%
StrFormat,Split,%ProjectDir%,\,%ProjectDirNo%,%ProjectFolderName%
If,ExistSection,%ScriptFile%,Settings_Default_%ProjectFolderName%,Run,%ScriptFile%,Settings_Default_%ProjectFolderName%

[Settings_Default]
Set,%Cache_Keep_NumberBox%,2,Permanent
IniWrite,%ScriptFile%,Main,Level,1

[Settings_Default_Gena]
Set,%Cache_Keep_NumberBox%,10,Permanent
IniWrite,%ScriptFile%,Main,Level,1

[Settings_Default_Yomi]
Set,%Cache_Keep_NumberBox%,2,Permanent
IniWrite,%ScriptFile%,Main,Level,2

[Settings_Default_SE]
Set,%Cache_Keep_NumberBox%,2,Permanent
IniWrite,%ScriptFile%,Main,Level,2

[EncodedFile-InterfaceEncoded-DoubleJDesignRavenna3dArrowDown0016016.bmp]
lines=0
0=eJzNk09Ik2Ecxw06BF2KqG5ih1EgYZZu7+v7vnu3d++2MpelRFHgQZEaJLVIXSxrW4Wauf7Nwha2rQ7dOgT9IQT1EkQHi+hSHfRSUZrMcp389PjSoUib3vrB9/I8fD78fr+Hxwi0LS+yyi6ySWSVyGqRZUUl1rnr1/3vBfy3+TTxkabuAzx4dp+lsu/G31LRXIrjaCmeVjtfpj4v2jH+YQwpWIYc3orctgUptJkT/UcWxc/1rLXYqYpKqGcklEglcns5DuF48uLhPx2TUxOYIRWlU8PZraOdU1GjMsop4RO9+Ducf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