Xerox 05W, 07W & -11W manual 13-16, Redefine the Answerback to the given string

Models: 07W & -11W 05W

1 370
Download 370 pages 7.04 Kb
Page 308
Image 308

Dynamic Data Exchange

Example 2

Redefine the Answerback to the given string.

SetAnswerback(LPSTR szAnswer, int iAnsLen)

{

ChangeSetting(

hWnd,

hWndPartner, IDM_EMUL,

ANSSTRING,

iAnsLen,

szAnswer, iAnsLen );

}

Example 3

Set the keyboard macro assigned to the Shift + F6 key sequence to Hello World.

Note: The highlighted characters Slave in hWndSlaveDDE are only applicable to TeemTalk for Windows 3.1. They are not to be included when using Windows 95 or NT.

.

.

SetKbdMacro(141, "Hello World", 11);

.

 

.

 

SetKbdMacro(

 

int iKeyMacro,

/* Key to be redefined */

LPSTR szMacroString, /* Pointer to redefinition string */

int iMacroLen

/* Max allowed Length of szMacroString */

)

 

{

 

ChangeSetting(

hWnd,

hWndPartner,

IDM_MACROS,

NKEYSTRING,

iKeyIndex,

szMacroString, iMacroLen

);

}

void

13-16

Page 308
Image 308
Xerox 05W, 07W & -11W manual 13-16, Redefine the Answerback to the given string