home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computerworld 1996 March
/
Computerworld_1996-03_cd.bin
/
idg_cd3
/
aplikace
/
komunika
/
telixwin
/
tfw.5
/
MACRO.SLT
< prev
next >
Wrap
Text File
|
1995-07-28
|
1KB
|
29 lines
/****************************************************************/
/* */
/* 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
}