SliderCPV Help File

SliderCPV Help File

Plugin Name:

SliderCPV

Current Version:

1.0.0.0

Author:

Ceone

E-mail:

produceone@gmail.com


Table of Contents

SliderCPV.CreateObject
SliderCPV.SetCurrentPos
SliderCPV.GetCurrentPos
SliderCPV.SetRange
SliderCPV.GetRange
SliderCPV.SetOrientation
SliderCPV.GetOrientation
SliderCPV.SetRailStyle
SliderCPV.GetRailStyle
SliderCPV.SetBackColor
SliderCPV.GetBackColor
SliderCPV.ShowValueTip
SliderCPV.IsShowValueTip
SliderCPV.StartEvents

SliderCPV.CreateObject


SliderCPV.CreateObject ( 

(string) ObjectName = "Plugin1",

(number) Orientation = Horizontal,

(number) RailStyle = Sunken,

(number) RangeMin = 0,

(number) RangeMax = 100,

(number) CurrentPos = 0,

(number) BackColor = 0,

(boolean) ShowValueTip = true,

(boolean) ActiveEvents = true )

Description

To create SliderCPV object.

Parameters

ObjectName

(string) ObjectName

Orientation

(number) Orientation

CONSTANT

VALUE

DESCRIPTION

Horizontal

0

Horizontal Value

Vertical

1

Vertical Value

RailStyle

(number) RailStyle

CONSTANT

VALUE

DESCRIPTION

Sunken

0

Sunken value

Raised

1

Raised value

SunkenSoft

2

SunkenSoft value

RaisedSoft

3

RaisedSoft value

RangeMin

(number) RangeMin

RangeMax

(number) RangeMax

CurrentPos

(number) CurrentPos

BackColor

(number) BackColor

ShowValueTip

(boolean) ShowValueTip

ActiveEvents

(boolean) ActiveEvents(if active events need active first SliderCPV.StartEvents function)

Returns

This action dose not return any value.


Example

SliderCPV.StartEvents("Plugin1","Plugin2","Plugin3","Plugin4","Plugin5","Plugin6","Plugin7","Plugin8","Plugin9","Plugin10","Plugin11","Plugin12");

SliderCPV.CreateObject("Plugin1", Horizontal, Sunken, 0, 100, 0, Math.Random(1, 2999999), true, true);
SliderCPV.CreateObject("Plugin2", Horizontal, Raised, 0, 100, 20, Math.Random(1, 4999999), false, true);
SliderCPV.CreateObject("Plugin3", Horizontal, SunkenSoft, 0, 100, 40, Math.Random(1, 1999999), true, true);
SliderCPV.CreateObject("Plugin4", Horizontal, RaisedSoft, 0, 100, 60, Math.Random(1, 5999999), false, true);
SliderCPV.CreateObject("Plugin5", Horizontal, Sunken, 0, 100, 80, Math.Random(1, 7999999), true, true);
SliderCPV.CreateObject("Plugin6", Horizontal, Raised, 0, 100, 100, Math.Random(1, 1999999), false, true);

SliderCPV.CreateObject("Plugin7", Vertical, SunkenSoft, 0, 100, 0, Math.Random(1, 2999999), true, true);
SliderCPV.CreateObject("Plugin8", Vertical, RaisedSoft, 0, 100, 20, Math.Random(1, 4999999), false, true);
SliderCPV.CreateObject("Plugin9", Vertical, Sunken, 0, 100, 40, Math.Random(1, 1999999), true, true);
SliderCPV.CreateObject("Plugin10", Vertical, Raised, 0, 100, 60, Math.Random(1, 5999999), false, true);
SliderCPV.CreateObject("Plugin11", Vertical, SunkenSoft, 0, 100, 80, Math.Random(1, 7999999), true, true);
SliderCPV.CreateObject("Plugin12", Vertical, RaisedSoft, 0, 100, 100, Math.Random(1, 1999999), false, true);



SliderCPV.SetCurrentPos


SliderCPV.SetCurrentPos ( 

(string) ObjectName = "Plugin1",

(number) CurrentPos = 0 )

Description

To set CurrentPos

Parameters

ObjectName

(string) ObjectName

CurrentPos

(number) CurrentPos

Returns

This action dose not return any value.


Example

for z=1,12 do
    SliderCPV.SetCurrentPos("Plugin"..z, Math.Random(0, 100));
end



SliderCPV.GetCurrentPos


(number) SliderCPV.GetCurrentPos ( 

(string) ObjectName = "Plugin1" )

Description

To get CurrentPos

Parameters

ObjectName

(string) ObjectName

Returns

(number)


Example

tblCurPos ={}
for z=1,12 do
    tblCurPos[z] = SliderCPV.GetCurrentPos("Plugin"..z);
end

text = "Plugin1 CurrentPos: "..tblCurPos[1].."\r\n"
text = text.."Plugin2 CurrentPos: "..tblCurPos[2].."\r\n"
text = text.."Plugin3 CurrentPos: "..tblCurPos[3].."\r\n"
text = text.."Plugin4 CurrentPos: "..tblCurPos[4].."\r\n"
text = text.."Plugin5 CurrentPos: "..tblCurPos[5].."\r\n"
text = text.."Plugin6 CurrentPos: "..tblCurPos[6].."\r\n"
text = text.."Plugin7 CurrentPos: "..tblCurPos[7].."\r\n"
text = text.."Plugin8 CurrentPos: "..tblCurPos[8].."\r\n"
text = text.."Plugin9 CurrentPos: "..tblCurPos[9].."\r\n"
text = text.."Plugin10 CurrentPos: "..tblCurPos[10].."\r\n"
text = text.."Plugin11 CurrentPos: "..tblCurPos[11].."\r\n"
text = text.."Plugin12 CurrentPos: "..tblCurPos[12].."\r\n"


Dialog.Message("", text);



SliderCPV.SetRange


SliderCPV.SetRange ( 

(string) ObjectName = "Plugin1",

(number) Min = 0,

(number) Max = 100 )

Description

To set current position

Parameters

ObjectName

(string) ObjectName

Min

(number) Min

Max

(number) Max

Returns

This action dose not return any value.


Example

InA = Input.GetText("Input1")
InB = Input.GetText("Input2")
if (InA == "Min") or (InB == "Max") or (InA == "") or (InB == "") then
    Dialog.Message("", "Set Range numbers in Input1(Min) and Input2(Max)");
else
    for z=1,12 do
        SliderCPV.SetRange("Plugin"..z, InA, InB);
        SliderCPV.SetCurrentPos("Plugin"..z, Math.Random(InA, InB));
    end
end



SliderCPV.GetRange


(table) SliderCPV.GetRange ( 

(string) ObjectName = "Plugin1" )

Description

To get Range

Parameters

ObjectName

(string) ObjectName

Returns

(table)


Example

tblRange = SliderCPV.GetRange("Plugin1")

Dialog.Message("", "All Plugins Range Is: "..tblRange.Min.." Min, "..tblRange.Max.." Max.");



SliderCPV.SetOrientation


SliderCPV.SetOrientation ( 

(string) ObjectName = "Plugin1",

(number) Orientation = Horizontal )

Description

To set current position

Parameters

ObjectName

(string) ObjectName

Orientation

(number) Orientation

CONSTANT

VALUE

DESCRIPTION

Horizontal

0

Horizontal value

Vertical

1

Vertical value

Returns

This action dose not return any value.


Example

result = ComboBox.GetItemData("ComboBox1", e_Selection)
for z=1,12 do
    SliderCPV.SetOrientation("Plugin"..z, result);
end



SliderCPV.GetOrientation


(number) SliderCPV.GetOrientation ( 

(string) ObjectName = "Plugin1" )

Description

To get Orientation

Parameters

ObjectName

(string) ObjectName

Returns

(number)


Example

result = SliderCPV.GetOrientation("Plugin1")



SliderCPV.SetRailStyle


SliderCPV.SetRailStyle ( 

(string) ObjectName = "Plugin1",

(number) RailStyle = Sunken )

Description

To set current position

Parameters

ObjectName

(string) ObjectName

RailStyle

(number) RailStyle

CONSTANT

VALUE

DESCRIPTION

Sunken

0

Sunken value

Raised

1

Raised value

SunkenSoft

2

SunkenSoft value

RaisedSoft

3

RaisedSoft value

Returns

This action dose not return any value.


Example

result = ComboBox.GetItemData("ComboBox1", e_Selection)
for z=1,12 do
    SliderCPV.SetRailStyle("Plugin"..z, result);
end



SliderCPV.GetRailStyle


(number) SliderCPV.GetRailStyle ( 

(string) ObjectName = "Plugin1" )

Description

To get RailStyle

Parameters

ObjectName

(string) ObjectName

Returns

(number)


Example

tblRailStyle ={}
for z=1,12 do
    tblRailStyle[z] = SliderCPV.GetRailStyle("Plugin"..z);
    if tblRailStyle[z] == 0 then
        tblRailStyle[z] = "Sunken"
    elseif tblRailStyle[z] == 1 then
        tblRailStyle[z] = "Raised"
    elseif tblRailStyle[z] == 2 then
        tblRailStyle[z] = "SunkenSoft"
    elseif tblRailStyle[z] == 3 then
        tblRailStyle[z] = "RaisedSoft"
    end
end
if (tblRailStyle[2] == tblRailStyle[4]) and (tblRailStyle[7] == tblRailStyle[12]) then
    text = "All Plugins RailStyle Is: "..tblRailStyle[1]
else
    text = "Plugin1 RailStyle: "..tblRailStyle[1].."\r\n"
    text = text.."Plugin2 RailStyle: "..tblRailStyle[2].."\r\n"
    text = text.."Plugin3 RailStyle: "..tblRailStyle[3].."\r\n"
    text = text.."Plugin4 RailStyle: "..tblRailStyle[4].."\r\n"
    text = text.."Plugin5 RailStyle: "..tblRailStyle[5].."\r\n"
    text = text.."Plugin6 RailStyle: "..tblRailStyle[6].."\r\n"
    text = text.."Plugin7 RailStyle: "..tblRailStyle[7].."\r\n"
    text = text.."Plugin8 RailStyle: "..tblRailStyle[8].."\r\n"
    text = text.."Plugin9 RailStyle: "..tblRailStyle[9].."\r\n"
    text = text.."Plugin10 RailStyle: "..tblRailStyle[10].."\r\n"
    text = text.."Plugin11 RailStyle: "..tblRailStyle[11].."\r\n"
    text = text.."Plugin12 RailStyle: "..tblRailStyle[12].."\r\n"
end

Dialog.Message("", text);



SliderCPV.SetBackColor


SliderCPV.SetBackColor ( 

(string) ObjectName = "Plugin1",

(number) BackColor = 0 )

Description

To set current position

Parameters

ObjectName

(string) ObjectName

BackColor

(number) BackColor

Returns

This action dose not return any value.


Example

result = DLL.CallFunction("AutoPlay\\Docs\\ColorDlg.dll", "ShowColorDlg", "", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
if result ~= "-1" then
    tbResults = DelimitedStringToTable(result,"|");
    Dec = String.ToNumber(tbResults[1]);
    for z=1,12 do
        SliderCPV.SetBackColor("Plugin"..z, Dec);
    end
end    



SliderCPV.GetBackColor


(number) SliderCPV.GetBackColor ( 

(string) ObjectName = "Plugin1" )

Description

To get BackColor

Parameters

ObjectName

(string) ObjectName

Returns

(number)


Example

tblColor ={}
for z=1,12 do
    tblColor[z] = SliderCPV.GetBackColor("Plugin"..z);
end
if (tblColor[2] == tblColor[4]) and (tblColor[7] == tblColor[12]) then
    text = "All Plugins Color Is: "..tblColor[1]
else
    text = "Plugin1 Color: "..tblColor[1].."\r\n"
    text = text.."Plugin2 Color: "..tblColor[2].."\r\n"
    text = text.."Plugin3 Color: "..tblColor[3].."\r\n"
    text = text.."Plugin4 Color: "..tblColor[4].."\r\n"
    text = text.."Plugin5 Color: "..tblColor[5].."\r\n"
    text = text.."Plugin6 Color: "..tblColor[6].."\r\n"
    text = text.."Plugin7 Color: "..tblColor[7].."\r\n"
    text = text.."Plugin8 Color: "..tblColor[8].."\r\n"
    text = text.."Plugin9 Color: "..tblColor[9].."\r\n"
    text = text.."Plugin10 Color: "..tblColor[10].."\r\n"
    text = text.."Plugin11 Color: "..tblColor[11].."\r\n"
    text = text.."Plugin12 Color: "..tblColor[12].."\r\n"
end

Dialog.Message("", text);



SliderCPV.ShowValueTip


SliderCPV.ShowValueTip ( 

(string) ObjectName = "Plugin1",

(boolean) ShowValueTip = true )

Description

To set current position

Parameters

ObjectName

(string) ObjectName

ShowValueTip

(boolean) ShowValueTip

Returns

This action dose not return any value.


Example

for z=1,12 do
    SliderCPV.ShowValueTip("Plugin"..z, true);
end



SliderCPV.IsShowValueTip


(boolean) SliderCPV.IsShowValueTip ( 

(string) ObjectName = "Plugin1" )

Description

To get is IsShowValueTip

Parameters

ObjectName

(string) ObjectName

Returns

(boolean)


Example

tblShowValueTip ={}
for z=1,12 do
    tblShowValueTip[z] = SliderCPV.IsShowValueTip("Plugin"..z);
end
if (tblShowValueTip[2] == tblShowValueTip[4]) and (tblShowValueTip[7] == tblShowValueTip[12]) then
    text = "All Plugins ShowValueTip Is: "..tostring(tblShowValueTip[1])
else
    text = "Plugin1 ShowValueTip Is: "..tostring(tblShowValueTip[1]).."\r\n"
    text = text.."Plugin2 ShowValueTip Is: "..tostring(tblShowValueTip[2]).."\r\n"
    text = text.."Plugin3 ShowValueTip Is: "..tostring(tblShowValueTip[3]).."\r\n"
    text = text.."Plugin4 ShowValueTip Is: "..tostring(tblShowValueTip[4]).."\r\n"
    text = text.."Plugin5 ShowValueTip Is: "..tostring(tblShowValueTip[5]).."\r\n"
    text = text.."Plugin6 ShowValueTip Is: "..tostring(tblShowValueTip[6]).."\r\n"
    text = text.."Plugin7 ShowValueTip Is: "..tostring(tblShowValueTip[7]).."\r\n"
    text = text.."Plugin8 ShowValueTip Is: "..tostring(tblShowValueTip[8]).."\r\n"
    text = text.."Plugin9 ShowValueTip Is: "..tostring(tblShowValueTip[9]).."\r\n"
    text = text.."Plugin10 ShowValueTip Is: "..tostring(tblShowValueTip[10]).."\r\n"
    text = text.."Plugin11 ShowValueTip Is: "..tostring(tblShowValueTip[11]).."\r\n"
    text = text.."Plugin12 ShowValueTip Is: "..tostring(tblShowValueTip[12]).."\r\n"
end

Dialog.Message("", text);



SliderCPV.StartEvents


SliderCPV.StartEvents ( 

(string) ObjectName1 = "Plugin1",

(string) ObjectName2 = nil,

(string) ObjectName3 = nil,

(string) ObjectName4 = nil,

(string) ObjectName5 = nil,

(string) ObjectName6 = nil,

(string) ObjectName7 = nil,

(string) ObjectName8 = nil,

(string) ObjectName9 = nil,

(string) ObjectName10 = nil,

(string) ObjectName11 = nil,

(string) ObjectName12 = nil,

(string) ObjectName13 = nil,

(string) ObjectName14 = nil,

(string) ObjectName15 = nil )

Description

To start events of SliderCPV object. (Max. 15)

Parameters

ObjectName1

(string) The name 1 of the SliderCPV object.

ObjectName2

(string) The name 2 of the SliderCPV object.

ObjectName3

(string) The name 3 of the SliderCPV object.

ObjectName4

(string) The name 4 of the SliderCPV object.

ObjectName5

(string) The name 5 of the SliderCPV object.

ObjectName6

(string) The name 6 of the SliderCPV object.

ObjectName7

(string) The name 7 of the SliderCPV object.

ObjectName8

(string) The name 8 of the SliderCPV object.

ObjectName9

(string) The name 9 of the SliderCPV object.

ObjectName10

(string) The name 10 of the SliderCPV object.

ObjectName11

(string) The name 11 of the SliderCPV object.

ObjectName12

(string) The name 12 of the SliderCPV object.

ObjectName13

(string) The name 13 of the SliderCPV object.

ObjectName14

(string) The name 14 of the SliderCPV object.

ObjectName15

(string) The name 15 of the SliderCPV object.

Returns

This action dose not return any value.


Example

SliderCPV.StartEvents("Plugin1","Plugin2","Plugin3","Plugin4","Plugin5","Plugin6","Plugin7","Plugin8","Plugin9","Plugin10","Plugin11","Plugin12");

SliderCPV.CreateObject("Plugin1", Horizontal, Sunken, 0, 100, 0, Math.Random(1, 2999999), true, true);
SliderCPV.CreateObject("Plugin2", Horizontal, Raised, 0, 100, 20, Math.Random(1, 4999999), false, true);
SliderCPV.CreateObject("Plugin3", Horizontal, SunkenSoft, 0, 100, 40, Math.Random(1, 1999999), true, true);
SliderCPV.CreateObject("Plugin4", Horizontal, RaisedSoft, 0, 100, 60, Math.Random(1, 5999999), false, true);
SliderCPV.CreateObject("Plugin5", Horizontal, Sunken, 0, 100, 80, Math.Random(1, 7999999), true, true);
SliderCPV.CreateObject("Plugin6", Horizontal, Raised, 0, 100, 100, Math.Random(1, 1999999), false, true);

SliderCPV.CreateObject("Plugin7", Vertical, SunkenSoft, 0, 100, 0, Math.Random(1, 2999999), true, true);
SliderCPV.CreateObject("Plugin8", Vertical, RaisedSoft, 0, 100, 20, Math.Random(1, 4999999), false, true);
SliderCPV.CreateObject("Plugin9", Vertical, Sunken, 0, 100, 40, Math.Random(1, 1999999), true, true);
SliderCPV.CreateObject("Plugin10", Vertical, Raised, 0, 100, 60, Math.Random(1, 5999999), false, true);
SliderCPV.CreateObject("Plugin11", Vertical, SunkenSoft, 0, 100, 80, Math.Random(1, 7999999), true, true);
SliderCPV.CreateObject("Plugin12", Vertical, RaisedSoft, 0, 100, 100, Math.Random(1, 1999999), false, true);





This File Was Generated With AMS ActionFile Editor