Intermec CV30 Intermec Terminal Emulator (ITE) Programmer's Reference Manual - Page 169
ITC.stopScreenContentsResponse, ITC.SendKeys
View all Intermec CV30 manuals
Add to My Manuals
Save this manual to your list of manuals |
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