home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Mother of All Windows Books
/
CD-MOM.iso
/
cd_mom
/
newsletr
/
vbz
/
vbz1-3
/
popclr.bas
< prev
next >
Wrap
BASIC Source File
|
1993-04-25
|
454b
|
22 lines
DefInt A-Z
Declare Function GetAsyncKeyState Lib "User" (ByVal VKCODE)
Const VK_CONTROL = &H11
Const VK_C = 67
Sub Main ()
Clr& = 0
Do
Do
Ok = DoEvents()
Loop Until GetAsyncKeyState(VK_C) And &H8000
If GetAsyncKeyState(VK_CONTROL) And &H8000 Then
Result = GetColors(Clr&, -1)
If Result Then SendKeys "&H" + Hex$(Clr&) + "&~", 0
End If
Loop
End Sub