Intermec CV30 Intermec Terminal Emulator (ITE) Programmer's Reference Manual - Page 169

ITC.stopScreenContentsResponse, ITC.SendKeys

Page 169 highlights

Appendix B - About RPC Implementation ITC.stopScreenContentsResponse This function decrements the count of attached clients and then sends the message WM_ATTACHED_CLIENTS with the wparam set to the current count of attached clients. It will close the socket connection between ITE and the client. Example: void MyUnRegister( void ) { noArgs = ""; c->execute("ITC.stopScreenContentsResponse", noArgs, result); xmlRpcClientServer.close(); } ITC.SendKeys This function takes a single parameter which is a pointer to an array that defines if the key value has set: • the alt modifier. • the ctrl modifier. • the shift modifier or special key modifier. • the key value itself. If the alt modifier is true then send VK_MENU (alt) key down event. Then send the key value followed by a key up event for the VK_MENU. If the control modifier is true then send VK_CONTROL key down event. Then send the key value followed by a key up event for VK_CONTROL. If the Special modifier is true then you can send down ITE emulation keys. Note: In order to send functions keys to the ITE application you need to set both shift and special key modifiers to true. This is because ITE gets around the issue of Windows Mobile 5 (and later) taking over many of the F1 to F12 keys by sending a VK_LSHIFT preceding the virtual key value for the function key. Example: void SendKey ( int KeyValue) { TCHAR aTCharString[2]; char aCharString[2]; XmlRpcValue charStruct,result; XmlRpcValue booleanFalse(false); XmlRpcValue booleanTrue(true); aTCharString[0] = KeyValue; aTCharString[1] = '\0'; wcstombs(aCharString, aTCharString, 2); charStruct[0]["Alt"] = booleanFalse; charStruct[0]["Control"] = booleanFalse; charStruct[0]["Shift"] = booleanFalse; charStruct[0]["Special"] = booleanFalse; charStruct[0]["KeyValue"] = (int)aCharString[0]; c->execute("ITC.sendKeys", charStruct, result); } Intermec Terminal Emulator (ITE) Programmer's Reference Manual 157

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Appendix B — About RPC Implementation
Intermec Terminal Emulator (ITE) Programmer’s Reference Manual
157
ITC.stopScreenContentsResponse
This function decrements the count of attached clients and then sends the message
WM_ATTACHED_CLIENTS with the wparam set to the current count of attached
clients.
It will close the socket connection between ITE and the client.
Example:
void
MyUnRegister( void )
{
noArgs = "";
c->execute("ITC.stopScreenContentsResponse", noArgs, result);
xmlRpcClientServer.close();
}
ITC.SendKeys
This function takes a single parameter which is a pointer to an array that defines if
the key value has set:
the alt modifier.
the ctrl modifier.
the shift modifier or special key modifier.
the key value itself.
If the alt modifier is true then send VK_MENU (alt) key down event.
Then send the
key value followed by a key up event for the VK_MENU.
If the control modifier is true then send VK_CONTROL key down event. Then send
the key value followed by a key up event for VK_CONTROL.
If the Special modifier is true then you can send down ITE emulation keys.
Example:
void SendKey ( int KeyValue)
{
TCHAR aTCharString[2];
char aCharString[2];
XmlRpcValue charStruct,result;
XmlRpcValue booleanFalse(false);
XmlRpcValue booleanTrue(true);
aTCharString[0] = KeyValue;
aTCharString[1] = '\0';
wcstombs(aCharString, aTCharString, 2);
charStruct[0]["Alt"] = booleanFalse;
charStruct[0]["Control"] = booleanFalse;
charStruct[0]["Shift"] = booleanFalse;
charStruct[0]["Special"] = booleanFalse;
charStruct[0]["KeyValue"] = (int)aCharString[0];
c->execute("ITC.sendKeys", charStruct, result);
}
Note:
In order to send functions keys to the ITE application you need to set both
shift and special key modifiers to true. This is because ITE gets around the issue of
Windows Mobile 5 (and later) taking over many of the F1 to F12 keys by sending a
VK_LSHIFT preceding the virtual key value for the function key.