ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Idea: Help with small simple program

<< < (2/2)

Earthcoder:
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:
 :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:
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

Navigation

[0] Message Index

[*] Previous page

Go to full version