topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 12:34 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Idea: Help with small simple program  (Read 7389 times)

Earthcoder

  • Participant
  • Joined in 2007
  • *
  • Posts: 48
    • View Profile
    • Donate to Member
Idea: Help with small simple program
« on: April 16, 2007, 09:39 AM »
I been searching the internet for 3days now trying to look for a simple program, that will run on windows 2000

That would Pop up a search box where you type in a word, then it searches a Txt file or Xml file or CSv file, and brings back to the screen the line of next from the search name.

E.g.

Txt file looks like this

s32452135 4503205
s20034423 20304955
s0209422 2939923
and so on

Xml looks like this of same txt file
<Pwdobs>
<number>s32452135</number>
<Dob>4503205</Dob>
</Pwdobs>
<Pwdobs>
<Snumber>s20034423</Snumber>
<Dob>20304955</Dob>
</Pwdobs>

So i got the file, Now just want a simple seach that would look for required number - s32452135 and then it would display 4503205 in a txt box that can be Copied.

I thought using Xml would make it easier as you search in number and show Dob

But i cant seem to find anything on the net that helps me with this.

needs to be program if possiable to make it easier for users to use, But html popup would do too.

Anyone able to help.



also got other text files with info i want displayed in a program.


i have Visual Basic express on pc, but its been 10years since i used a programming lang

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Idea: Help with small simple program
« Reply #1 on: April 16, 2007, 09:52 AM »
btw i think this would be a *very* useful and *very* simple FARR plugin (see https://www.donation...dex.php?topic=8071.0), which would also give you live searching as you type.

i'm tempted to write it myself but i don't want to steal someones "fun".

Earthcoder

  • Participant
  • Joined in 2007
  • *
  • Posts: 48
    • View Profile
    • Donate to Member
Re: Idea: Help with small simple program
« Reply #2 on: April 16, 2007, 10:05 AM »
Farr is great and i love it Problem is this program would need to be used by my Level 1 team, and they prob wouldnt install farr, cause they stupid. but i would use it and would love to see it in FARR

We work as a support team for a uni we get alot of students ringing up with lost passwords, so we have to changed the account using MMC program, to active directory, But all the passwords are stored in a seperate program, so we have to load up and log into this other program, but i have worked out how to export the passwords to a secure share that only my team can access, and was hoping i could get a program i can add a link to in MMC user manager i made to make it simple for my team to use.

Also wanted to add another search using same code sorta, that could display the data from other program i asked for.


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Idea: Help with small simple program
« Reply #3 on: April 16, 2007, 10:16 AM »
yeah i agree that installing farr just for this would be overkill :)

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,205
    • View Profile
    • Donate to Member
Re: Idea: Help with small simple program
« Reply #4 on: April 16, 2007, 10:48 AM »
Might be a bit heavy for what you want, but have you tried WanyWord?

Or some kind of visual grep with a shortcut to point it at the right file, such as BareGrep?


Earthcoder

  • Participant
  • Joined in 2007
  • *
  • Posts: 48
    • View Profile
    • Donate to Member
Re: Idea: Help with small simple program
« Reply #5 on: April 18, 2007, 04:47 AM »
so there no way of having a small exe program that loads up, my users would never install 3rd party cilents to search with in file, they would just open file and search in the file.

It would be good to have a exe type program that you can type username in then it would show you dob or even copy dob to the clipboard.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: Idea: Help with small simple program
« Reply #6 on: April 18, 2007, 06:19 AM »
 :tellme: I don't understand quite what you're looking for, but here's an AutoHotkey script to get you started.

Skrommel

;Search.ahk

#NoEnv
#SingleInstance,Force

Gui,Add,Edit,vfile x0 w200
Gui,Add,Button,gBROWSE x+5 w75,Browse...
Gui,Add,Edit,vsearch x0 w200
Gui,Add,Button,gSEARCH Default x+5 w75,Search
Gui,Add,Edit,vfind -Wrap -WantReturn -WantTab x0 w275 h275
Gui,Show
Return


BROWSE:
Gui,+OwnDialogs
FileSelectFile,filename,3,,Select a file, Text Documents (*.txt; *.xml; *.csv)
If filename=
  Return
GuiControl,,file,%filename%
Return


SEARCH:
Gui,Submit,NoHide
IfNotExist,%file%
{
  MsgBox,%file% doesn't exist!
  Return
}

text=
found=0
Loop,read,%file%
{
  If found=0
  IfInString,A_LoopReadLine,%search%
    found=1
  If found=1
    text=%text%%A_LoopReadLine%`n
}
GuiControl,,find,%text%
Return

Earthcoder

  • Participant
  • Joined in 2007
  • *
  • Posts: 48
    • View Profile
    • Donate to Member
Re: Idea: Help with small simple program
« Reply #7 on: April 18, 2007, 06:35 AM »
Thats great ill have a look see what i can do, I just made a Html Search xml page for now and seems to work well