Nadeem
2009-07-19 07:42:09
Hello people of SRL :)
I have finally finished some of my functions including the all new CodeType!
I will explain each function upon request but for now I'll explain what CodeType Does.
CodeType:
Valid Code Queries:
As you see, it basically reads your query and outputs it in a friendly manner :)
To use CodeType(); You must have the CodeType function code, included or in your script, and also have the NSPlugin.dll file in your Plugins folder.
NSPlugin.dll
Quick Functions List:
In-Depth Funtions List
The RAR file contains all the source files and the DLL file. All you have to do is move the DLL file to Plugins folder and start SCAR.
I Also Have The SVN At: http://nsplugin-dll.googlecode.com/svn/trunk/
~NS
I have finally finished some of my functions including the all new CodeType!
I will explain each function upon request but for now I'll explain what CodeType Does.
CodeType:
CodeType('<wait:$w>$n<space/><shift>$n</shift>$n', [500, 'Nadeem', 'sy', 'ed']);
{
Output = (wait 500ms)Nadeem[space]SYed
}
Valid Code Queries:
Codes : array [0..8] of string =
('<shift>', '</shift>', '<ctrl>', '</ctrl>',
'<alt>', '</alt>', '<space/>', '<wait:$w>', '$n');
As you see, it basically reads your query and outputs it in a friendly manner :)
To use CodeType(); You must have the CodeType function code, included or in your script, and also have the NSPlugin.dll file in your Plugins folder.
NSPlugin.dll
Quick Functions List:
function ReadlnEx(S: string; var Response: string; var Checked: TBooleanArray; uButton, uCheckB: TStringArray; FormType: Integer): Integer;
function RandomChar: Char;
function CompareStr(S1, S2: string; CaseSensitive: Boolean): Integer;
procedure Sort2DIntArr(var Data: T2DIntArray; Pos: Integer);
procedure SortStrArr(var Data: TStringArray);
function IntArrToStr(TIA: TIntegerArray; Delimiter: string): string;
function IntArrIn2DIntArr(TIA: TIntegerArray; T2DIA: T2DIntArray): Boolean;
procedure CodeTypeData(Query: string; var T2DIA: T2DIntArray);
function BeepSound(Frequency, Duration: Cardinal): LongBool;
//Removed FloatToIntEx, CharOfString, SwapInt, SwapStr, StrPattern cuz there's no point
In-Depth Funtions List
function ReadlnEx(S: string; var Response: string; var Checked: TBooleanArray; uButton, uCheckB: TStringArray; FormType: Integer): Integer;
//
// - Example -
// var
// R: string;
// B: TBooleanArray;
//
// ReadlnEx('Please Agree To My Terms And Conditions', R, B,
// ['Continue'], ['I Agree', 'I Disagree'], Nothing);
//
function RandomChar: Char;
//
// Returns a random uppercase character
//
function CompareStr(S1, S2: string; CaseSensitive: Boolean): Integer;
//
// S1 < S2 = -1
// S1 = S2 = 0
// S1 > S2 = +1
//
procedure Sort2DIntArr(var Data: T2DIntArray; Pos: Integer);
//
// Data = [TIntegerArray([3, 6]), TIntegerArray([2, 1]), TIntegerArray([1, 9])]
// Pos = Position of the IntegerArray you want to sort by.
// - Example -
// Pos = 0
// Data = [1, 9] [2, 1] [3, 6]
// Pos = 1
// Data = [2, 1] [3, 6] [1, 9]
//
procedure SortStrArr(var Data: TStringArray);
//
// - Example -
// Data = ['Works', 'Gratz', 'It']
// --
// Data = ['Gratz', 'It', 'Works']
//
function IntArrToStr(TIA: TIntegerArray; Delimiter: string): string;
//
// Converts an array of Integers to String
//
function IntArrIn2DIntArr(TIA: TIntegerArray; T2DIA: T2DIntArray): Boolean;
//
// Checks to see if the defined Array Of Integers is somewhere in the
// 2 Dimensional Integer Array
//
procedure CodeTypeData(Query: string; var T2DIA: T2DIntArray);
//
// It is used in my CodeType, no need for you anyway :)
//
function BeepSound(Frequency, Duration: Cardinal): LongBool;
//
// Will make a beeb sound :)
// Might only work on desktop computers
//
The RAR file contains all the source files and the DLL file. All you have to do is move the DLL file to Plugins folder and start SCAR.
I Also Have The SVN At: http://nsplugin-dll.googlecode.com/svn/trunk/
~NS