rendered paste body// CHelperDemo.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "WindowerHelper.h"#include <iostream>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ CKeyboardHelper* pKeyboardHelper; CTextHelper* pTextHelper; pKeyboardHelper = new CKeyboardHelper("WindowerMMFKeyboardHandler"); pTextHelper = new CTextHelper("WindowerMMFTextHandler"); printf("Available commands are:\n"); printf("createtext - Creates a sample text object\n"); printf("deletetext - Deletes the sample text object\n"); printf("send <string> - Sends the given string to the game, use \\n to specify a return\n"); printf("quit - Exits this demo\n"); while(1) { char sInput[4096]; cin.getline(sInput, sizeof(sInput)); if(stricmp(sInput, "createtext") == 0) { pTextHelper->CreateTextObject("CTest"); pTextHelper->SetColor("CTest", 255, 255, 255, 255); pTextHelper->SetLocation("CTest", 100, 100); pTextHelper->SetText("CTest", "This is a sample TextObject."); pTextHelper->FlushCommands(); } else if(stricmp(sInput, "deletetext") == 0) { pTextHelper->DeleteTextObject("CTest"); pTextHelper->FlushCommands(); } else if(strnicmp(sInput, "send", 4) == 0) { pKeyboardHelper->SendString(sInput + 5); } else if(stricmp(sInput, "quit") == 0) { break; } } delete pKeyboardHelper; delete pTextHelper; return 0;}