/****************************************************************/
/* */
/* Demo of how to use keyboard macro tables from within a */
/* SALT script file. */
/* */
/* Copyright 1995 deltaComm Development, Inc. */
/* */
/****************************************************************/
main()
{
str ss[100];
keysave("temp.key", 0); // Save the current macro table
keyload("test.key", 0); // Load a different macro table
keyget(0x3b00, 0, ss); // Get the f1 macro from the new table
if (!strposi(ss, "F1", 0)) // Test the macro; does it contain "F1"?
{
ss="F1"; // If not, make it so, number F1, and save.
keyset(0x3b00, 0, ss);
keysave("test.key", 0);
}
keyload("temp.key", 0); // Reload original macros
fdelete("temp.key"); // Delete the temporary file we saved above
}