LanapBotDetect::CodeTypeEnum Reference (BotDetect v2.0; deprecated)
Please Note
The information on this page is out of date and applies to a deprecated version of BotDetect™ CAPTCHA (v2.0).
An up-to-date equivalent page for the latest BotDetect Captcha release (v3) is BotDetect v3 ASP Classic Captcha API reference.
General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v3.0 page.
LanapBotDetect::CodeTypeEnum is a member of BotDetect ASP CAPTCHA interface that contains all valid values of the LanapBotDetect component's CodeType property. It represents the type of code rendered in CAPTCHA images and spoken in the audio CAPTCHAs.
Table of Contents
- CodeTypeEnum Members
- CodeTypeEnum Default
- CodeTypeEnum Usage
- CodeTypeEnum Notes
- CodeTypeEnum Screenshots
Members
[VB] Public Enum CodeTypeEnum AlphaNumeric = 0 Alpha = 1 Numeric = 2 End Enum
[C++]
typedef enum CodeTypeEnum
{
AlphaNumeric = 0,
Alpha = 1,
Numeric = 2
} CodeTypeEnum;
Default value
If the CodeType property is not set, 0 (AlphaNumeric) is used by default.
Usage
[ASP] ' Assume we are using the LanapBotDetectHandler.asp helper ' Example 1: simple assignment <img src= "LanapBotDetectHandler.asp?Command=CreateImage&CodeType=1" alt="CAPTCHA image" /> ' Example 2: randomization <% Dim codeType Randomize codeType = CInt( 2 * Rnd() ) %> <img src= "LanapBotDetectHandler.asp?Command= CreateImage&CodeType=<%=codeType%>" alt="CAPTCHA image" />
Direct access examples:
[VB]
Set objCaptcha = CreateObject("Lanap.BotDetect")
objCaptcha.CodeType = 1
[PHP]
$objCaptcha = new COM('Lanap.BotDetect');
$objCaptcha->CodeType = 1;
[Ruby]
objCaptcha = WIN32OLE.new('Lanap.BotDetect')
objCaptcha.CodeType = 1
[Java]
ActiveXComponent objCaptcha =
new ActiveXComponent("Lanap.BotDetect");
objCaptcha.setProperty("CodeType", 1);
[Python]
objCaptcha = win32com.client.Dispatch("Lanap.BotDetect")
objCaptcha.CodeType = 1
Notes
To improve user-friendliness, the CodeTypeEnum::AlphaNumeric code generation algorithm doesn't use the full range of available characters, but excludes some easily confused character pairs - for example, '1', 'I', '7', 'L', '0', 'O', '5' and 'S' are not used.
Screenshots
(Using the "Strippy" Text Style)
Alpha
Numeric
AlphaNumeric
Please Note
The information on this page is out of date and applies to a deprecated version of BotDetect™ CAPTCHA (v2.0).
An up-to-date equivalent page for the latest BotDetect Captcha release (v3) is BotDetect v3 ASP Classic Captcha API reference.
General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v3.0 page.
Current BotDetect Versions
- BotDetect PHP CAPTCHA v3.0.Alpha12012–02–06
- BotDetect ASP.NET CAPTCHA v3.0.92011–11–21
- BotDetect ASP Classic CAPTCHA v3.0.92011–11–21






