This thread is where I will post my own services for
FrodoComm Services Host.
Frodo
Printable View
This thread is where I will post my own services for
FrodoComm Services Host.
Frodo
PowerFunctions Service
Download:
PowerFunctions.zip
Install:
Use:Code:©2005 FrodoPlayer.com
©2005 Kevin Lincecum
Install instructions.
Make a folder called PowerFunctions inside
the COM Plugins portion of the FrodoComm Services Host folder.
Place the extracted files in that folder, make sure the files
are in that folder, and not an additional sub directory.
Run RegisterPowerFunctions.bat
Now you should be able to enable the plugin in the services host.
(It should automatically load if the host is running)
License: Same as with FrodoComm Services Host.Code:©2005 FrodoPlayer.com
©2005 Kevin Lincecum
VB Example
FrodoCommObject.PostMessageByName "PowerFunctions", "SET", "POWERMESSAGE", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><PowerMessage><Action><LOCK Force=""True""/></Action></PowerMessage>"
FrodoCommObject.PostMessageByName "PowerFunctions", "SET", "POWERMESSAGE", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><PowerMessage><Action><STANDBY Force=""True""/></Action></PowerMessage>"
FrodoCommName: PowerFunctions
Message Type: SET
Event Name: POWERMESSAGE
Format: XML
XML Messages List:
Note: (Force="True" forces the system to do the selected action. Force="False" does not.)
Lock Computer:
<?xml version="1.0" encoding="UTF-8"?>
<PowerMessage>
<Action>
<LOCK Force="True"/>
</Action>
</PowerMessage>
Logoff Computer:
<?xml version="1.0" encoding="UTF-8"?>
<PowerMessage>
<Action>
<LOGOFF Force="True"/>
</Action>
</PowerMessage>
Restart Computer:
<?xml version="1.0" encoding="UTF-8"?>
<PowerMessage>
<Action>
<RESTART Force="True"/>
</Action>
</PowerMessage>
Shutdown Computer:
<?xml version="1.0" encoding="UTF-8"?>
<PowerMessage>
<Action>
<SHUTDOWN Force="True"/>
</Action>
</PowerMessage>
Hibernate Computer:
<?xml version="1.0" encoding="UTF-8"?>
<PowerMessage>
<Action>
<HIBERNATE Force="True"/>
</Action>
</PowerMessage>
Standby/Suspend Computer:
<?xml version="1.0" encoding="UTF-8"?>
<PowerMessage>
<Action>
<STANDBY Force="True"/>
</Action>
</PowerMessage>
Simple Post Message Service
Download: Included with Services Host Download
(Also, source is included)
Use:
Code:©2005 FrodoPlayer.com
©2005 Kevin Lincecum
VB Example
FrodoCommObject.PostMessageByName "WindowsMessages", "SET", "WINDOWSMESSAGE", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><SimplePostMessage><HWND>" & CStr(FH) & "</HWND><UMSG>2054</UMSG><WPARAM>0</WPARAM><LPARAM>0</LPARAM></SimplePostMessage>"
FrodoCommName: WindowsMessages
Message Type: SET
Event Name: WINDOWSMESSAGE
Format: XML
XML Messages List:
Sample PostMessage:
<?xml version="1.0" encoding="UTF-8"?>
<SimplePostMessage>
<HWND>32687</HWND>
<UMSG>2054</UMSG>
<WPARAM>0</WPARAM>
<LPARAM>0</LPARAM>
</SimplePostMessage>
Speech Output Plugin Service
Download: Included with Services Host Download
(Also, source is included)
Use:
Code:©2005 FrodoPlayer.com
©2005 Kevin Lincecum
VB Example
FrodoCommObject.PostMessageByName "SpeechService", "SET", "SPEECH", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><Speech><Speak>Hello</Speak></Speech>"
FrodoCommName: SpeechService
Message Type: SET
Event Name: SPEECH
Format: XML
XML Messages List:
Sample Speech:
<?xml version="1.0" encoding="UTF-8"?>
<Speech>
<Speak>Hello</Speak>
</Speech>
Volume Query And Control Service
Download: Included with Services Host Download
(Also, source is included)
Code:©2005 FrodoPlayer.com
©2005 Kevin Lincecum
VB Example
FrodoCommObject.PostMessageByName "VolumeService", "SET", "VOLUME", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><Volume><Master><Level>75.4</Level></Master></Volume>"
FrodoCommObject.PostMessageByName "VolumeService", "SET", "VOLUME", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><Volume><Master><Mute>False</Mute></Master></Volume>"
FrodoCommObject.PostMessageByName "VolumeService", "SET", "VOLUME", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><Volume><Master><Command>Up</Command></Master></Volume>"
Messages sent FROM the volume service:
Message Type: STATUS
Event Name: VOLUME
Format: XML
Should look just like messages sent to the service, except
without the "Command" attributes.
Messages sent TO the volume service:
FrodoCommName: VolumeService
Message Type: SET
Event Name: VOLUME
Format: XML
XML Messages List:
(Note, all are listed in one message, and will work.
but not all are needed, you can do one at a time or all.
This also applies to setting properties for each line)
Sample Speech:
<?xml version="1.0" encoding="UTF-8"?>
<Volume>
<Master>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</Master>
<Wave>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</Wave>
<CD>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</CD>
<Mic>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</Mic>
<Line>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</Line>
</Volume>"
JoystickEvents Service (Beta)
Download:
JoystickEvents.zip
Note: Update rate is 20/sec
Install:
Use:Code:©2005 FrodoPlayer.com
©2005 Kevin Lincecum
Install instructions.
Make a folder called JoystickEvents inside
the COM Plugins portion of the FrodoComm Services Host folder.
Place the extracted files in that folder, make sure the files
are in that folder, and not an additional sub directory.
Run RegisterJoystickEvents.bat
Now you should be able to enable the plugin in the services host.
(It should automatically load if the host is running)
License: Same as with FrodoComm Services Host.Code:©2005 FrodoPlayer.com
©2005 Kevin Lincecum
Messages sent FROM the JoystickEvents service:
Message Type: STATUS
Event Name: JOYBUTTON, JOYMOVE
Format: XML
Example XML Messages:
Note: Index ranges 0 to 3
Note: Buttons range 0 to 32
Note: Axis are X,Y,Z,RX,RY,RZ
Note: Move is NEGATIVE or POSITIVE
<?xml version="1.0" encoding="UTF-8"?>
<JOYSTICK INDEX="0">
<JOYBUTTON>0</JOYBUTTON>
</JOYSTICK>
<?xml version="1.0" encoding="UTF-8"?>
<JOYSTICK INDEX="0">
<JOYMOVE AXIS="X">NEGATIVE</JOYMOVE>
</JOYSTICK>