TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: `THE LIBRARIAN`
date: 1997-12-21 11:52:00
subject: Universal Toggle??

From: "The Librarian" 
Greetings,
I am attempting to write a macro whereby a specific key could toggle two
different instructions.  I have accomplished this by abusing someone
else's code:
snip===============================================================snip
proc ToggleIt()
integer key
Repeat
key = GetKey()
if key == 
InsertText("One")
CReturn()
key = GetKey()
if key == 
InsertText("Two")
CReturn()
endif
endif
Until key == 
end
snip===============================================================snip
However, I'd prefer that the macro stop when ANY other key is depressed.
Lastly, it would be nice if I could type and the  key would
only be invoked when depressed.
Any suggestions?
Happy Holidays!
Skip
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.