cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
97
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Corey Canfield on 29-07-2010 05:23:03 AM
I'm having a hard time issuing key press and key click via xml. This is what I've tried:
1http://<IP>/formputxml?xmldoc=<Command><Key><Click item="1" command="True">MuteMic</Click></Key></Command>


Returns a white screen when I look at the source it says:

<Command>
</Command>


Also tried:
1http://<IP>/formputxml?xmldoc=<Command><Key><Click item="1" command="True">MuteMic</Click><Release item="1" command="True">MuteMic</Release></Key></Command>


returns the same thing:
<Command>
</Command>


Also tried both of these commands as key presses with the same results.

At first I thought it was formatting, but the parser typically returns a formatting error code of some type.

Does anyone have any ideas?


Thanks

Corey

Subject: RE: Key Press & Click XML issue
Replied by: Viggo Fredriksen on 29-07-2010 12:58:44 PM
Hi Corey,

  ideally your input should return some more useful error message (e.g., command not found
or illegal argument etc.), as your input is indeed wrong.

The command you're trying to execute is:
1xcommand Key Click Key: MuteMic


Which translates into the following XML:
1<Command>
2  <Key>
3    <Click command="True">
4      <Key>MuteMic</Key>
5    </Click>
6  </Key>
7</Command>


Which results in the following formputxml URL:
1
2http://<ip>/formputxml?xmldoc=<Command><Key><Click command="True"><Key>MuteMic</Key></Click></Key></Command>


You're actually missing the Key argument and added Release in addition. A Key Click
command is both Key Press and Key Release.

Subject: RE: Key Press & Click XML issue
Replied by: Corey Canfield on 02-08-2010 09:45:29 PM
Viggo,

Just so I understand both sides, could you show me the equivalent of that command for an MXP?


Thanks again


Corey

Subject: RE: Key Press & Click XML issue
Replied by: Viggo Fredriksen on 03-08-2010 10:05:26 AM
Terminal:
1
2xCommand KeyPress Key: MicOff


XML:
1
2<Command>
3  <KeyPress>
4     <Key>MicOff</Key>
5   </KeyPress>
6</Command>


Formputxml:
1
2http://<ip>/formputxml?xmldoc=<Command><KeyPress><Key>MicOff</Key></KeyPress></Command>

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links