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
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | url |
start(ScriptScopeContext, String)
View Source
Declaration
public bool start(ScriptScopeContext scope, string cmd)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | cmd |
desktopInfo(ScriptScopeContext)
View Source
Declaration
public Dictionary<string, string> desktopInfo(ScriptScopeContext scope)
Returns
Dictionary<System.String,System.String>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
deviceScreenResolution(ScriptScopeContext)
View Source
Declaration
public Dictionary<string, object> deviceScreenResolution(ScriptScopeContext scope)
Returns
Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
findWindowByName(ScriptScopeContext, String)
View Source
Declaration
public long findWindowByName(ScriptScopeContext scope, string name)
Returns
System.Int64
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | name |
clipboard(ScriptScopeContext)
View Source
Declaration
public string clipboard(ScriptScopeContext scope)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
setClipboard(ScriptScopeContext, String)
View Source
Declaration
public bool setClipboard(ScriptScopeContext scope, string data)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | data |
messageBox(ScriptScopeContext, String, String, UInt32)
View Source
Declaration
public int messageBox(ScriptScopeContext scope, string text, string caption, uint type)
Returns
System.Int32
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | text |
System.String | caption |
System.UInt32 | type |
expandEnvVars(ScriptScopeContext, String)
View Source
Declaration
public string expandEnvVars(ScriptScopeContext scope, string path)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | path |
knownFolder(ScriptScopeContext, String)
View Source
Declaration
public string knownFolder(ScriptScopeContext scope, string folderName)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | folderName |
primaryMonitorInfo(ScriptScopeContext)
View Source
Declaration
public Dictionary<string, object> primaryMonitorInfo(ScriptScopeContext scope)
Returns
Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowSendToForeground(ScriptScopeContext)
View Source
Declaration
public bool windowSendToForeground(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowCenterToScreen(ScriptScopeContext)
View Source
Declaration
public bool windowCenterToScreen(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowCenterToScreen(ScriptScopeContext, Boolean)
View Source
Declaration
public bool windowCenterToScreen(ScriptScopeContext scope, bool useWorkArea)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Boolean | useWorkArea |
windowSetFullScreen(ScriptScopeContext)
View Source
Declaration
public bool windowSetFullScreen(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowSetFocus(ScriptScopeContext)
View Source
Declaration
public bool windowSetFocus(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowShowScrollBar(ScriptScopeContext, Boolean)
View Source
Declaration
public bool windowShowScrollBar(ScriptScopeContext scope, bool show)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Boolean | show |
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
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Int32 | x |
System.Int32 | y |
System.Int32 | width |
System.Int32 | height |
windowSetPosition(ScriptScopeContext, Int32, Int32)
View Source
Declaration
public bool windowSetPosition(ScriptScopeContext scope, int x, int y)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Int32 | x |
System.Int32 | y |
windowSetSize(ScriptScopeContext, Int32, Int32)
View Source
Declaration
public bool windowSetSize(ScriptScopeContext scope, int width, int height)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Int32 | width |
System.Int32 | height |
windowRedrawFrame(ScriptScopeContext)
View Source
Declaration
public bool windowRedrawFrame(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowIsVisible(ScriptScopeContext)
View Source
Declaration
public bool windowIsVisible(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowIsEnabled(ScriptScopeContext)
View Source
Declaration
public bool windowIsEnabled(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowShow(ScriptScopeContext)
View Source
Declaration
public bool windowShow(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowHide(ScriptScopeContext)
View Source
Declaration
public bool windowHide(ScriptScopeContext scope)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowText(ScriptScopeContext)
View Source
Declaration
public string windowText(ScriptScopeContext scope)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowSetText(ScriptScopeContext, String)
View Source
Declaration
public bool windowSetText(ScriptScopeContext scope, string text)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.String | text |
windowSetState(ScriptScopeContext, Int32)
View Source
Declaration
public bool windowSetState(ScriptScopeContext scope, int state)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Int32 | state |
windowSize(ScriptScopeContext)
View Source
Declaration
public Dictionary<string, object> windowSize(ScriptScopeContext scope)
Returns
Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowClientSize(ScriptScopeContext)
View Source
Declaration
public Dictionary<string, object> windowClientSize(ScriptScopeContext scope)
Returns
Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
windowClientRect(ScriptScopeContext)
View Source
Declaration
public Dictionary<string, object> windowClientRect(ScriptScopeContext scope)
Returns
Dictionary<System.String,System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
openFile(ScriptScopeContext, Dictionary<String, Object>)
View Source
Declaration
public DialogResult openFile(ScriptScopeContext scope, Dictionary<string, object> options)
Returns
ServiceStack.Desktop.DialogResult
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
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
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
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
Parameters
Type | Name |
---|---|
System.String | name |
System.Int32 | argsCount |
ServiceStack.Script.InvokerType | type |
QueryFilters(String)
View Source
Declaration
public List<MethodInfo> QueryFilters(string filterName)
Returns
System.Collections.Generic.List<System.Reflection.MethodInfo>
Parameters
Type | Name |
---|---|
System.String | filterName |