Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-05-2006, 12:43 PM   #1
~ Ryan ~
 
Join Date: Jun 2005
Location: Jackson TN
Posts: 3,516
Send a message via AIM to rspassey Send a message via MSN to rspassey
VB6 Find and Store.

I have been thinking about doing a little VB6 program to help decipher Hijack This Logs so that they don't have to be analyzed online - especially if one is infected with malware that prevents webpages to be viewed.

Thinking deeper into the idea, I am pretty sure that BASIC will be able to handle the functions as I want them. I was planing on having a total log analyzer - you put in the log, press the start button and seconds later it would spit out information on each entry in the log, and if malware - telling how to best remove it.

To do so, I would need a way to find and store the individual keywords to then refer to against the database I would program into it. But, I am drawing a blank on the coding for finding specific characters and locations. Such coding which would be able to identify the { } and [ ] characters and store the information located between them.

Thanks In Advance,
Ryan

If this doesn't seem posible - or at least to someone of my limited programming skills, I know a simpler way would be to have a text box where you insert the BHO # or Start Up Keyword and press and "Info" Button - similar to those found online.
__________________
RiotCats.com, an internet domain specifically fabricated and visually erected for the appreciation of the feline kingdom!
rspassey is offline   Reply With Quote
Old 02-07-2006, 03:46 AM   #2
Member (9 bit)
 
Join Date: Feb 2005
Posts: 392
this may help:

http://www.freevbcode.com/ShowCode.Asp?ID=417

try replacing "," with "[" and "{", then there you go...
__________________
words to live by:
others don't know, I know.
others know, I know more.
others know more, I excel.
one shouldnt read this far; above, is meant as an encouragement, translated from a Chinese Proverb.
"He who angers you conquers you." : Elizabeth Kenny
alfie2 is offline   Reply With Quote
Old 02-07-2006, 04:18 PM   #3
~ Ryan ~
 
Join Date: Jun 2005
Location: Jackson TN
Posts: 3,516
Send a message via AIM to rspassey Send a message via MSN to rspassey
Quote:
Originally Posted by alfie2
this may help:

http://www.freevbcode.com/ShowCode.Asp?ID=417

try replacing "," with "[" and "{", then there you go...
Okay, thanks, I think I might be able to get that to work, if not I can go with the single search idea I was thinking about.

At the moment I am working on a Sudoku Puzzle Maker as a special project. The expected time to finish it is one month as it is a LOT of code and what seem like hundreds of If/Then statements. If anyone is an avid VB6 user, I highly recommend trying out this project (the Sudoku one) as it is one of the most enjoyable ones I have worked on and the overall coding isn't too difficult - it is the logic and problem solving parts which make it difficult.
rspassey is offline   Reply With Quote
Old 02-07-2006, 09:47 PM   #4
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
Sounds like you are just doing simple string parsing. The functions "instr" and "mid" would be most helpful.
faulkner132 is offline   Reply With Quote
Old 02-08-2006, 03:52 AM   #5
~ Ryan ~
 
Join Date: Jun 2005
Location: Jackson TN
Posts: 3,516
Send a message via AIM to rspassey Send a message via MSN to rspassey
I know it isn't Mid -
Quote:
The Mid( ) function returns a specified number of characters from a string. The first integer argument specifies the starting position of the string to be extracted and the second integer argument specifies the number of characters.
Because I never know how long the string will be that I am storing.

Like I said - it might be easier to have a 04 text box where you put in the keyword and press a Find Button and then in a label below, it is updated with the information - that would also make coding it simpler while (in the end) the same goal is accomplished.
rspassey is offline   Reply With Quote
Old 02-08-2006, 07:52 AM   #6
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
Mid would work if you did something like this
Code:
start = instr("[", data)
finish = instr("]", data, start + 1)
value = mid(data, start, finish - start)
I'm not 100% sure the parameter order is correct, but the logic should be the same for pulling values between a "[ ]".
faulkner132 is offline   Reply With Quote
Old 02-08-2006, 08:23 AM   #7
~ Ryan ~
 
Join Date: Jun 2005
Location: Jackson TN
Posts: 3,516
Send a message via AIM to rspassey Send a message via MSN to rspassey
Okay, thanks, I will try that out later. I first have to code most of the data base such as
Code:
if value1 = "Option04" then label2.caption = "Option04 is associated with etc....
rspassey is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:04 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2