While I am sure I could hard code a bunch of individual checks for each terms, there has to be a way to loop through each of the terms or with some sort of OR so that the script can be dynamic depending on the terms provided each time.
If you could help me with sample code that I could play with, that would be a big help.
Code: Select all
Gui, Add, Text, x12 y9 w160 h20 , Technician Name (Last_First)*:
Gui, Add, Edit, x182 y9 w370 h20 vTECH,JOHN DOE
Gui, Add, Text, x12 y39 w330 h20 , Full Path of Log (drag file here)*:
Gui, Add, Edit, x12 y59 w570 h20 vFile,%A_Desktop%\Parser\haystack.txt
Gui, Add, Text, x12 y99 w100 h20 , Terms (one per line)*:
Gui, Add, Edit, x12 y119 w570 h130 vterms,Big`nRed`nDog
Gui, Add, Button, x22 y259 w140 h40 gOK, Parse
Gui, Add, Button, x202 y259 w130 h40 gCancel, Cancel
; Generated using SmartGUI Creator 4.0
Gui, Show, x652 y408 h330 w605, %AppName%
Return
GuiClose:
ExitApp
GuiDropFiles:
GuiControl,, File, %A_GuiEvent% ;This will only work properly if one file is dropped on the GUI. To handle several files being dropped, see help file on GuiDropFiles.
return
Cancel:
exitapp
OK:
Gui,Submit,NoHide