Recently Browsing
0 members

Similar Content

This is my take on string triggers, triggers on specific strings.
Able to simple text pasting,
opening links (as long as there's a www. http:\\ or https:\\ at the beggining)
and is able to open applications, if there is a parameter in the parameter field, it uses it.
Shows your external, lan, and gateway ip's.
Able to change system volume by a set percentage, reading from the inputbox the number the user sets, if 0 or empty uses system default.
I made this because the existing string trigger applications didn't do it for me.
I did this for me, but if someone finds it useful, all the better.

Is there a way to output the regex matches into a file?
I have a script to compare two files and check for regex matches.
I want to output the matching regex of 'testexample.txt' to another file.
#include <MsgBoxConstants.au3>
#include <Array.au3>
$Read = FileReadToArray("C:\Users\admin\Documents\testexample.txt")
$Dictionary = FileReadToArray("C:\Users\admin\Documents\example.txt")
For $p = 0 To UBound($Dictionary) - 1 Step 1
$pattern = $Dictionary[$p]
For $i = 0 To UBound($Read) - 1 Step 1
$regex = $Read[$i]
If StringRegExp($regex, $pattern, 0) Then
MsgBox(0, "ResultsPass", "The string is in the file, highlighted strings: " )
Else
MsgBox(0, "ResultsFail", "The string isn't in the file.")
EndIf
Next
Next