TIP: Click on subject to list as thread! ANSI
echo: ms_word
to: ALL
from: BRUCE ADAMS
date: 1996-08-23 20:16:00
subject: Text color change clarification

Hey, y'all!
When I posted that last bit, I completely forgot to include a Windows 3.x
version. The first line of the macro:
Declare Function GetKeyState Lib "USER32.DLL"(nVirtKey As Long) As Integer
Is a 32-bit API call, so won't work in Win 3.x. I'm not sure, but it may
also not work from 16-bit Word under Win 95. (Please do not all hit me at
once...)
Anyway, the fix is easy. Just replace "USER32.DLL" with "USER". Preferably,
one would include the extension, but I can't remember whether in Win 3.x
USER is a DLL or an EXE. You can search your WINDOWS\SYSTEM directory. Also,
you have to change the parameter type from Long to Integer. Thus, the 16-bit
call would read:
Declare Function GetKeyState Lib "USER"(nVirtKey As Integer) As Integer
Sorry for the mistake.
Have fun!
Bruce Adams
... Oxymoron: Minor disaster.
-*- TurboEDIT v1.11a [MSP96]
--- ProBoard v2.15 [Reg]
---------------
* Origin: Cortland's Remote (NY) (3-Nodes-1#-Win95-V.34's) (1:260/742)

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™.