Simulating a keystroke
> I know this a dumb question but how do I make the system think the user > pressed Enter from somewhere other…
WinNT/98/95??
> How do I detect if NT4 or Windows 95/98 is running > many thanks in advance Found this bit of code: DETECT…
WindowsXP: Multiple Instances of a Program – how to find them?
WinXP – Multiple Instances of a Program – how to find them? (http://windowsxp.devx.com/articles/fus/default.asp) Controlling Running Instances It is common for applications to control…
Getting the Temp Path of the System
You know, every PC can have a different location where the user likes to store temporary files. But Windows has an API function…
Check Text
[code lang=”delphi”]procedure CheckText(Sender:TEdit; var Key:Char); begin If not (Key in [‘0′..’9′,’.’,#8, #13]) then Key := #0; If Key = ‘.’ then begin If…
Encrypt & DeCrypt
[code lang=”delphi”]function TForm1.EnDeCode(const Value : String) : String; var CharIndex : Integer; ReturnValue : String; begin ReturnValue := ”; for CharIndex := 1…
Fix Path
// Appends a back slash to a path if needed If Path[length(Path)]‘\’ then Path := Path +’\’; [tags]Delphi, Strings[/tags]
Formatting
Format(‘%-35s’,[MyString]) // Where 35 is the length to make the string // And MyString is the string to format Formatting numbers : [code…
Get Parsed item
[code lang=”delphi”]Function TForm1.GetParsedItem(TheItemStr, ParseStr : String; ItemNum : Integer): String; Var I4 : Integer; S4 : String; Begin TheItemStr := TheItemStr + ParseStr;…
How to use “stringreplace”
>could you tell me how to use “stringreplace” >and if you don’t mind please send me a sample code Are you having a…