Section 1. properties, Name, Portopen – MagTek MTKBDWEDGE.OCX User Manual
Page 5
1
SECTION 1. PROPERTIES
NAME
Sets and returns the control name.
Syntax
KbdWedge.Name[ = value]
The Name property syntax has these parts:
Part
Description
Value
A string value specifying the name of the control.
Examples: Assume a KbdWedge control is named “KbdWedge1”.
msgbox KbdWedge1.Name
Displays “KbdWedge1” in a message box
KbdWedge1.Name = “KbdWedge2”
Changes the name of the control to ‘KbdWedge2’
PORTOPEN
Sets or returns the status of the keyboard port.
Syntax
KbdWedge.PortOpen[ = value]
The PortOpen property syntax has these parts:
Part
Description
Value A Boolean value specifying the status of the port.
Remarks
You can open the Port by setting the PortOpen property to True. You can close the port by
setting the PortOpen property to False.
When the PortOpen is true the Keyboard is “hooked” and the keystrokes are captured.
Example
Open the port:
KbdWedge.PortOpen = True
Close the port:
KbdWedge.PortOpen = False
Data Type
Boolean