xMount Plugin Help File

xMount Plugin Help File

Plugin Name:

xMount Plugin

Current Version:

1.0.2.1

Description:

The xMount plugin allows you to run, mount, amd resize any programs window right inside of your AutoPlay Media Studio 8 applications.

Author:

Jason Thompson dba FoxxPC

Web:

http://www.foxxpc.com (under construction)

E-mail:

support@foxxpc.com

Requirements:

Windows XP/Vista/7 & AutoPlay Media Studio 8

Copyright:

© 2010 Jason Thompson dba FoxxPC

Install Notes:

This plugin will only function with AutoPlay Media Studio 8.x


Table of Contents

xMount.Run
xMount.Create
xMount.Resize
xMount.Close

xMount.Run


(string) xMount.Run ( 

(string) FilePath = "C:\\myfile.exe" )

Description

Runs an executable and prepares it for mounting.

Parameters

FilePath

(string) The physical location of the program to be rans executable.

Returns

(string) The filename of executable. If the specified file is not valid or any other error occurs, nil is returned.


Example

File = xMount.Run("C:\\Program Files\\Internet Explorer\\iexplore.exe");



xMount.Create


(table) xMount.Create ( 

(string) Filename = "myprog.exe",

(string) Sizing = "DEFAULT",

(number) Width = nil,

(number) Height = nil,

(number) X = nil,

(number) Y = nil,

(number) Delay = 2000 )

Description

Mounts the defined programs window to the application window.

Note: You must call xMount.Run before you use this action.

Parameters

Filename

(string) The filename of the program window to be mounted.

Note: You can use the return value for xMount.Run to obtain this string.

Sizing

(string) The sizing routine to be used for the mounted window.

CONSTANT

VALUE

DESCRIPTION

DEFAULT

"DEFAULT"

Uses the built-in default size parameters.

CUSTOM

"CUSTOM"

Uses the custom size parameter you specified instead of the default.

Width

(number) The new width of the mouted window in pixels.

Height

(number) The new height of the mounted window in pixels.

X

(number) The new X pixel coordinate (horizontal position) to set for the mounted window. This is the X coordinate of the upper left hand corner of the mounted window relative to the application window.

Y

(number) The new Y pixel coordinate (vertical position) to set for the mounted window. This is the Y coordinate of the upper left hand corner of the mounted window relative to the application window.

Delay

(number) The integer value that represents the delay in milliseconds before the window is mounted.

Note: Keep in mind when setting this value it must be high enough to allow ample time for the program to be mounted to finish executing.

Returns

(table) A table containing the properties of the mounted window, indexed by the following keys:

KEY

TYPE

DESCRIPTION

PWnd

number

The window handle of the application window.

CWnd

number

The window handle of the mounted window.


If the table could not be created or any other error occurs, nil is returned.


Example

mytable = xMount.Create(File,"DEFAULT",nil,nil,nil,nil,2000);



xMount.Resize


xMount.Resize ( 

(number) ParentHwnd,

(number) ChildHwnd,

(string) Sizing = "DEFAULT",

(number) Width = nil,

(number) Height = nil,

(number) X = nil,

(number) Y = nil )

Description

Resizes the mounted window given its sizing type, window handle, and parents window handle.

Note: The associated window must be mounted in order for this to work.

Parameters

ParentHwnd

(number) The numeric window handle for the application window.

ChildHwnd

(number) The numeric window handle for the mounted window.

Sizing

(string) The sizing routine to be used for the mounted window.

CONSTANT

VALUE

DESCRIPTION

DEFAULT

"DEFAULT"

Uses the built-in default size parameters.

CUSTOM

"CUSTOM"

Uses the custom size parameters you specified instead of the default.

Width

(number) The new width of the mounted window in pixels.

Height

(number) The new height of the mounted window in pixels.

X

(number) The new X pixel coordinate (horizontal position) to set for the mounted window. This is the X coordinate of the upper left hand corner of the mounted window relative to the application window.

Y

(number) The new Y pixel coordinate (vertical position) to set for the mounted window. This is the Y coordinate of the upper left hand corner of the mounted window relative to the application window.

Returns

This action does not return any value.


Example

xMount.Resize(mytable.PWnd,mytable.CWnd,"DEFAULT",nil,nil,nil,nil);



xMount.Close


xMount.Close ( 

(number) ChildHwnd )

Description

Closes the window mounted inside the application window.

Note: The associated window must be mounted in order for this to work.

Parameters

ChildHwnd

(number) The numeric window handle for the mounted window.

Returns

This action does not return any value.


Example

xMount.Close(mytable.CWnd)




© 2010 Jason Thompson dba FoxxPC