Skip to main content

DesktopScripts

Assembly: ServiceStack.Desktop.dll​
View Source​
Declaration
public class DesktopScripts : ScriptMethods

Inherited Properties​

Context​

View Source​
Declaration
public ScriptContext Context { get; set; }

InvokerCache​

View Source​
Declaration
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }

Pages​

View Source​
Declaration
public ISharpPages Pages { get; set; }

Methods​

openUrl(ScriptScopeContext, String)​

View Source​
Declaration
public bool openUrl(ScriptScopeContext scope, string url)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringurl

start(ScriptScopeContext, String)​

View Source​
Declaration
public bool start(ScriptScopeContext scope, string cmd)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringcmd

desktopInfo(ScriptScopeContext)​

View Source​
Declaration
public Dictionary<string, string> desktopInfo(ScriptScopeContext scope)
Returns​

Dictionary<System.String,System.String>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

deviceScreenResolution(ScriptScopeContext)​

View Source​
Declaration
public Dictionary<string, object> deviceScreenResolution(ScriptScopeContext scope)
Returns​

Dictionary<System.String,System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

findWindowByName(ScriptScopeContext, String)​

View Source​
Declaration
public long findWindowByName(ScriptScopeContext scope, string name)
Returns​

System.Int64

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringname

clipboard(ScriptScopeContext)​

View Source​
Declaration
public string clipboard(ScriptScopeContext scope)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

setClipboard(ScriptScopeContext, String)​

View Source​
Declaration
public bool setClipboard(ScriptScopeContext scope, string data)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringdata

messageBox(ScriptScopeContext, String, String, UInt32)​

View Source​
Declaration
public int messageBox(ScriptScopeContext scope, string text, string caption, uint type)
Returns​

System.Int32

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringtext
System.Stringcaption
System.UInt32type

expandEnvVars(ScriptScopeContext, String)​

View Source​
Declaration
public string expandEnvVars(ScriptScopeContext scope, string path)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringpath

knownFolder(ScriptScopeContext, String)​

View Source​
Declaration
public string knownFolder(ScriptScopeContext scope, string folderName)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.StringfolderName

primaryMonitorInfo(ScriptScopeContext)​

View Source​
Declaration
public Dictionary<string, object> primaryMonitorInfo(ScriptScopeContext scope)
Returns​

Dictionary<System.String,System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowSendToForeground(ScriptScopeContext)​

View Source​
Declaration
public bool windowSendToForeground(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowCenterToScreen(ScriptScopeContext)​

View Source​
Declaration
public bool windowCenterToScreen(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowCenterToScreen(ScriptScopeContext, Boolean)​

View Source​
Declaration
public bool windowCenterToScreen(ScriptScopeContext scope, bool useWorkArea)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.BooleanuseWorkArea

windowSetFullScreen(ScriptScopeContext)​

View Source​
Declaration
public bool windowSetFullScreen(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowSetFocus(ScriptScopeContext)​

View Source​
Declaration
public bool windowSetFocus(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowShowScrollBar(ScriptScopeContext, Boolean)​

View Source​
Declaration
public bool windowShowScrollBar(ScriptScopeContext scope, bool show)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Booleanshow

windowSetPosition(ScriptScopeContext, Int32, Int32, Int32, Int32)​

View Source​
Declaration
public bool windowSetPosition(ScriptScopeContext scope, int x, int y, int width, int height)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Int32x
System.Int32y
System.Int32width
System.Int32height

windowSetPosition(ScriptScopeContext, Int32, Int32)​

View Source​
Declaration
public bool windowSetPosition(ScriptScopeContext scope, int x, int y)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Int32x
System.Int32y

windowSetSize(ScriptScopeContext, Int32, Int32)​

View Source​
Declaration
public bool windowSetSize(ScriptScopeContext scope, int width, int height)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Int32width
System.Int32height

windowRedrawFrame(ScriptScopeContext)​

View Source​
Declaration
public bool windowRedrawFrame(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowIsVisible(ScriptScopeContext)​

View Source​
Declaration
public bool windowIsVisible(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowIsEnabled(ScriptScopeContext)​

View Source​
Declaration
public bool windowIsEnabled(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowShow(ScriptScopeContext)​

View Source​
Declaration
public bool windowShow(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowHide(ScriptScopeContext)​

View Source​
Declaration
public bool windowHide(ScriptScopeContext scope)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowText(ScriptScopeContext)​

View Source​
Declaration
public string windowText(ScriptScopeContext scope)
Returns​

System.String

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowSetText(ScriptScopeContext, String)​

View Source​
Declaration
public bool windowSetText(ScriptScopeContext scope, string text)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Stringtext

windowSetState(ScriptScopeContext, Int32)​

View Source​
Declaration
public bool windowSetState(ScriptScopeContext scope, int state)
Returns​

System.Boolean

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Int32state

windowSize(ScriptScopeContext)​

View Source​
Declaration
public Dictionary<string, object> windowSize(ScriptScopeContext scope)
Returns​

Dictionary<System.String,System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowClientSize(ScriptScopeContext)​

View Source​
Declaration
public Dictionary<string, object> windowClientSize(ScriptScopeContext scope)
Returns​

Dictionary<System.String,System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

windowClientRect(ScriptScopeContext)​

View Source​
Declaration
public Dictionary<string, object> windowClientRect(ScriptScopeContext scope)
Returns​

Dictionary<System.String,System.Object>

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope

openFile(ScriptScopeContext, Dictionary<String, Object>)​

View Source​
Declaration
public DialogResult openFile(ScriptScopeContext scope, Dictionary<string, object> options)
Returns​

ServiceStack.Desktop.DialogResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
Dictionary<System.String,System.Object>options

openFolder(ScriptScopeContext, Dictionary<String, Object>)​

View Source​
Declaration
public DialogResult openFolder(ScriptScopeContext scope, Dictionary<string, object> options)
Returns​

ServiceStack.Desktop.DialogResult

Parameters​
TypeName
ServiceStack.Script.ScriptScopeContextscope
Dictionary<System.String,System.Object>options

Inherited Methods​

GetInvoker(String, Int32, InvokerType)​

View Source​
Declaration
public MethodInvoker GetInvoker(string name, int argsCount, InvokerType type)
Returns​

ServiceStack.MethodInvoker

Parameters​
TypeName
System.Stringname
System.Int32argsCount
ServiceStack.Script.InvokerTypetype

QueryFilters(String)​

View Source​
Declaration
public List<MethodInfo> QueryFilters(string filterName)
Returns​

System.Collections.Generic.List<System.Reflection.MethodInfo>

Parameters​
TypeName
System.StringfilterName