Welcome
JamDriveList object Plugin
1.5.0.0
An object that displays a list of drives of the system, where we can interact with them with various functions
free
rafaxplayer
Require Memory plugin and ShellBrowserX.ocx
Copy the plugin folder and the directory of AMS / Plugins / Objects, also requires copying the contents of "Dependencies" in our AMS project, path: CD_Root / AutoPlay / Plugins, that's all.
DriveList.CreateObject(ObjectName)
DriveList.SetCheckBoxes
DriveList.SetShellContextMenu
DriveList.AddEditableItem
DriveList.CheckAllItems
DriveList.SetMutiSelect
DriveList.SmartRefresh
DriveList.FullRefresh
DriveList.Clear
DriveList.SelectAll
DriveList.SetColor
DriveList.ShowColumnHeaders
DriveList.DeleteSelected
DriveList.ShowGridLines
DriveList.GetItemIndexSelected
DriveList.InvokeCommandOnselect
DriveList.GetSelectedPath
DriveList.AutomaticRefresh
DriveList.SetSelectItemIndex
DriveList.GetSelecetdCount
DriveList.ShowDetails
DriveList.ShowShellObjectNames
DriveList.SetStatusBarColor
DriveList.SetFontColor
DriveList.IsItemInList
DriveList.GetInfoDrive
DriveList.StartEvents
DriveList.CreateObject(ObjectName) ( | (string) Object Name = "Plugin1" ) |
Create to DriveList object
(string) Name of the Drive List Object
This action dose not return any value.
DriveList.CreateObject("Plugin1")
DriveList.SetCheckBoxes ( | (string) Object Name = "Plugin1", (boolean) Show = true ) |
Displays or hides Checkboxes
(string) Name of the Drive List Object
(boolean) Show or not CheckBoxes
Value | Description |
true | (Default) show |
false | Hide |
This action dose not return any value.
DriveList.SetCheckBoxes("Plugin1",true)
DriveList.SetShellContextMenu ( | (string) Object Name = "Plugin1", (boolean) Value = false ) |
Activate or not Contex menu on Right Click
(string) Name of the driveList Object
(boolean) Activate or not
Note: Deaful true
Value | Description |
true | Activate |
false | (Default) disable |
This action dose not return any value.
check = CheckBox.GetChecked(this)
if check then
DriveList.SetShellContextMenu("Plugin1",true)
else
DriveList.SetShellContextMenu("Plugin1",false)
end
DriveList.AddEditableItem ( | (string) Object Name = "Plugin1", (string) Path = "_SourceFolder", (boolean) Editable = true ) |
Add folder editable from a path in the system
(string) Name of the DriveList object
(string) Folder Path
(boolean) Bolean value , editable Item or not
Note: Default true
Value | Description |
true | (Default) Editable |
false | not editable |
This action dose not return any value.
xFolder = Dialog.FolderBrowse("Please select a folder:", "AutoPlay\\Docs");
if xFolder ~= "CANCEL" then
DriveList.AddEditableItem("Plugin1",xFolder,true)
CheckBox.SetChecked("CheckBox1", true);
end
DriveList.CheckAllItems ( | (string) Object Name = "Plugin1", (boolean) Check = true ) |
Checking will all checkbox object
Note: If there are also hidden the checking will
(string) Name of the DriveList object
(boolean) Check/Uncheck all items
Note: defaul false
Value | Description |
true | (Default) Check all |
false | UnCheck all |
This action dose not return any value.
DriveList.CheckAllItems("Plugin1")
DriveList.SetMutiSelect ( | (string) Object Name = "Plugin1", (boolean) MultiSelect = true ) |
Enable or not the multi selection of items
Note: default false
(string) Name of the Drive List Object
(boolean) Enable or disable
Value | Description |
true | (Default) Enable |
false | Disable |
This action dose not return any value.
check = CheckBox.GetChecked(this)
if check then
DriveList.SetMutiSelect("Plugin1",true)
else
DriveList.SetMutiSelect("Plugin1",false)
end
DriveList.SmartRefresh ( | (string) Object Name = "Plugin1" ) |
Smart Refresh
(string) Name of the Drive List Object
This action dose not return any value.
DriveList.SmartRefresh("Plugin1")
DriveList.FullRefresh ( | (string) Object Name = "Plugin1" ) |
Full Refersh object
(string) Name of the DriveList Object
This action dose not return any value.
DriveList.FullRefresh("Plugin1")
DriveList.Clear ( | (string) Object Name = "Plugin1" ) |
Clear Object
(string) Name of the DriveList object
This action dose not return any value.
DriveList.Clear("Plugin1")
DriveList.SelectAll ( | (string) Object Name = "Plugin1" ) |
Select All items of the object
(string) Name of the Drive List Object
This action dose not return any value.
DriveList.SelectAll("Plugin1")
DriveList.SetColor ( | (string) Object Name = "Plugin1", (number) Color = 0000 ) |
Set background color
(string) Name of the DriveList object
(number) Number of Color (Decimal value)
This action dose not return any value.
local nColor = SysDialog.Color(65280);
if nColor~=nil then
DriveList.SetColor("Plugin1",nColor.Decimal)
end
DriveList.ShowColumnHeaders ( | (string) Object Name = "Plugin1", (boolean) Show = false ) |
Show or hide Column headers
(string) Name of the driveList Object
(boolean) Show or Hide
Note: Default true
Value | Description |
true | Show |
false | (Default) Hide |
This action dose not return any value.
check = CheckBox.GetChecked(this)
if check then
DriveList.ShowColumnHeaders("Plugin1",true)
else
DriveList.ShowColumnHeaders("Plugin1",false)
end
DriveList.DeleteSelected ( | (string) Object Name = "Plugin1" ) |
Delete Item selected
Note: No delete Files of system
(string) Name of the DriveList Object
This action dose not return any value.
DriveList.DeleteSelected("Plugin1")
DriveList.ShowGridLines ( | (string) Object Name = "Plugin1", (boolean) Show = true ) |
Show or Hide grid lines
Note: deaful Hide
(string) Name of the DriveList Object
(boolean) Show or Hide lines
Value | Description |
true | (Default) Show lines |
false | Hide lines |
This action dose not return any value.
DriveList.ShowGridLines("Plugin1",true)
(number) DriveList.GetItemIndexSelected ( | (string) Object Name = "Plugin1" ) |
Get a number index of the selected item
(string) Name of the DriveList Object
(number) if an error occurs, -1 is returned
index = DriveList.GetItemIndexSelected("Plugin1")
if index ~= -1 then
Dialog.Message("Item","Index : "..index)
end
(boolean) DriveList.InvokeCommandOnselect ( | (string) Object Name = "Plugin1" ) |
Run command on select drive
(string) Name of the Drive List object
(boolean) if command run then true is returned , if error ,false
(string) DriveList.GetSelectedPath ( | (string) Object Name = "Plugin1" ) |
Gea a selected item path
(string) Name of the DriveList Object
(string)
path = DriveList.GetSelectedPath("Plugin1")
Dialog.Message("Path",path)
DriveList.AutomaticRefresh ( | (string) Object Name = "Plugin1", (boolean) Aut. = true ) |
Is automatically updated with changes
(string) Name of the driveList Object
(boolean) refresh autmatic or not
Note: default false
Value | Description |
true | (Default) Automatic refresh |
false | not |
This action dose not return any value.
DriveList.AutomaticRefresh("Plugin1",true)
DriveList.SetSelectItemIndex ( | (string) Object Name = "Plugin1", (number) Index = 0 ) |
Set selected item index
Note: The program applies the indices from 0, the first index = 0
(string) Name of the DriverList Object
(number) index of the item to select
This action dose not return any value.
DriveList.SelectItemIndex("Plugin1",3)
(number) DriveList.GetSelecetdCount ( | (string) Object Name = "Plugin1" ) |
counts the number of selected items
(string) Name of the DriveList Object
(number)
nCount = DriveList.GetSelecetdCount("Plugin1")
if nCoun ~= 0 then
Dialgog.Mesage("Items","Total Items : "..nCount)
end
DriveList.ShowDetails ( | (string) Object Name = "Plugin1", (boolean) Show = false ) |
Show details or not
(string) Name of the DriveList Object
(boolean) Show details or hide
Note: Default true
Value | Description |
true | Show deatils |
false | (Default) Hide |
This action dose not return any value.
check = CheckBox.GetChecked(this)
if check then
DriveList.ShowDetails("Plugin1",true)
else
DriveList.ShowDetails("Plugin1",false)
end
DriveList.ShowShellObjectNames ( | (string) Object Name = "Plugin1", (boolean) Show = false ) |
Show or not Shell object names
(string) Name of the object
(boolean) Show or Hide Shell names
Note: Default true
Value | Description |
true | Show Names |
false | (Default) Hide |
This action dose not return any value.
check = CheckBox.GetChecked(this)
if check then
DriveList.ShowShellObjectNames("Plugin1",true)
else
DriveList.ShowShellObjectNames("Plugin1",false)
end
DriveList.SetStatusBarColor ( | (string) Object Name = "Plugin1", (number) Color = 0000 ) |
Status Bar Color
Note: Changes apply to all bars
(string) Name of the DriveList Object
(number) Number of Color (Decimal)
This action dose not return any value.
local nColor = SysDialog.Color(65280);
if nColor~=nil then
DriveList.SetStatusBarColor("Plugin1",nColor.Decimal)
end
DriveList.SetFontColor ( | (string) Object Name = "Plugin1", (number) Color = 0000 ) |
Set font color
(string) Name of the Drive List Object
(number) Number of color (Decimal)
This action dose not return any value.
local nColor = SysDialog.Color(65280);
if nColor~=nil then
DriveList.SetFontColor("Plugin1",nColor.Decimal)
end
(boolean) DriveList.IsItemInList ( | (string) Object Name = "Plugin1", (string) Text = "C:\" ) |
Find an item with the name
(string) Nmae of the DriveList Object
(string) Text of search item
Note: Case sensitive
(boolean) if item is in list return true , else false
Case sensitive and not Shell names
Text = Dialog.Input("Enter Data", "Your Drive:", "C\:", MB_ICONQUESTION);
if Text ~= "CANCEL" then
result = DriveList.IsItemInList("Plugin1",Text)
Dialog.Message("Searching",tostring(result))
end
(table) DriveList.GetInfoDrive ( | (string) Object Name = "Plugin1" ) |
Info of Drive selected
(string) Name of the Drive List Object
(table) Index of table:
.DisplayName -- name display
.Type -- Type Hdd ( Fixed,Remobable,CD-Rom...)
.TotalSize -- The full Size of the HDD
.Usedpercent -- Percent space used in HDD
.Freepercet -- Percent Free Space in HDD
.Label -- label info
.FileSystem -- File system to HDD (NTFS,Fat..)
.Serial -- Serial number
tbl_Drive = DriveList.GetInfoDrive("Plugin1")
text = "FullSize : "..tbl_Drive.TotalSize.."\r\n"
text = text .."Drive type : "..tbl_Drive.Type.."\r\n"
text = text .."Space used : "..tbl_Drive.Usedpercent.."\r\n"
text = text .."Free space : "..tbl_Drive.Freepercent.."\r\n"
text = text .."Label Info : "..tbl_Drive.Label.."\r\n"
text = text .."FileSystem Info : "..tbl_Drive.FileSystem.."\r\n"
text = text .."Serial Number : "..tbl_Drive.Serial.."\r\n"
text = text .."Info Dysplay name : "..tbl_Drive.DisplayName.."\r\n"
Dialog.Message("Info Drive",text)
DriveList.StartEvents ( | (string) Object Name = "Plugin1" ) |
On the events in the objects we use ( Max 3 Objects)
Note: This function is necessary to run the plugin
(string) Name of the drive List Object
This action dose not return any value.
-- Eixample 1 object:
DriveList.StartEvents("Plugin1")
-- 2 objects..
DriveList.StartEvents("Plugin1","Plugin2")
-- 3 objects
DriveList.StartEvents("Plugin1","Plugin2","Plugin3")
This File Was Generated With AMS ActionFile Editor