Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A few questions need answered please !

Status
Not open for further replies.

AbbasAkhtar

Programmer
Dec 16, 2002
25
GB
Questions to be asked in Delphi Forums

Hi I am stuck with the following problems, if anyone could help out, thanks.

1: I am creating a napp, which has a central log file which logs everything. I want to know, how can i do something like syntax highlighting, for example if my log has the following characters: <Tag1>, <Tag2>, how can I get <Tag1> and <Tag2> to be highlighted blue or red colour, anything between the < and the > but it has to be less than 10 characters in between. Or just the selected <Tag1> and <Tag2> will be coloured, instead of everything with < and between >. And it has to be quite fast.

2: In delphi, how can i create a grayscale jpeg, i tried the jpeg grayscale property, it just creates a blank jpeg file.

3: How can I have many files packed into 1 central file, e.g. I want a file called pics.pak and I want my delphi program to be able to save and extract all, selected or just 1 picture out of the pics.pak file. How would I go about doing this.

4: My application is going to monitor processes, exe files. I want my program to add all newly run exe's to the new programs run listbox, and I want this for all applications. It will scan every running process, if the process is iexplore.exe then add this to the log file at which time it was run, if possible. If the process is something.exe then it has to log this to and which time it was run. I want to be able to monitor and be notified when new processes are run.

5: And my last question, my program is going to monitor internet explorer, I want my program to add to a listbox all new url's accessed, when the user hits the Go button or hits the Enter key on the keyboard. I want the program to add to the listbox all new URL's entered in IE.

Any help will be appreciated any questions answered, will be appreciated too. Thankyou.
 
You've asked a number of difficult questions, each requiring far more detail than typically used in online support forums. Indeed, I've seen multi-page magazine articles devoted to some of these topics. In other words, any replies you get here are likely to be brief and incomplete.

I would recommend using google and other online resources to begin researching some of these issues. For example:

1. Syntax highlighting:
2. Coverting JGP's to greyscale is a bit complex. should contain the information you need.

3. There are several ways to pack multiple files together. Basically, you need something to either provide a .ZIP file interface, such as Dynazip ( or the Windows Compression API (e.g. compress.exe or compact.exe).

4. I do not understand the question you're asking with this. There are several different possible issues that you may be concerned with; also, there are a number of tools already available. For example, Raize CodeSite ( offers several possibilities.

You may find other useful information at
5. shows how to obtain the list of IE favorites using Delphi.

To obtain URL's as they're entered, you'd probably have to use DDE or OLE Automation to periodically query the current URL, obtain it, and track it as desired. For more information, please see the online help for the TWebBrowser compoent, which is essentially a wrapper around IE. In particular, you may be interested in the LocationURL property.

Hope this helps...

-- Lance
 
About 4:
Do you want to compress files into or decompress files from a file? Use 3rd Vcl component such as Abbrevia, it is esay to use. Just goto Gogole search it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top