Compare commits
2 Commits
de5e7b88e6
...
tier2
Author | SHA1 | Date | |
---|---|---|---|
9b9405c7d1 | |||
0fb614940f |
1
D3K.ahk
1
D3K.ahk
@ -487,6 +487,7 @@ Return
|
|||||||
Return
|
Return
|
||||||
#If
|
#If
|
||||||
|
|
||||||
|
|
||||||
#j:: ; Open the downloads folder on Win+J
|
#j:: ; Open the downloads folder on Win+J
|
||||||
Run, C:\Users\%A_UserName%\Downloads
|
Run, C:\Users\%A_UserName%\Downloads
|
||||||
Return
|
Return
|
||||||
|
5
func.ahk
5
func.ahk
@ -102,9 +102,8 @@ ini_write(location, inKey, inValue) ; Don't need to specify section because you
|
|||||||
file := FileOpen(location, "r")
|
file := FileOpen(location, "r")
|
||||||
temp := file.Read()
|
temp := file.Read()
|
||||||
file.Close()
|
file.Close()
|
||||||
inKey := "(?<=" inKey "=)\S*" ; Regex to make sure we're matching only the value for the requested key
|
inKeyReg := "(?<=^" inKey "=)\S*" ; Regex to make sure we're matching only the value for the requested key
|
||||||
temp := RegExReplace(temp, inKey, inValue)
|
temp := RegExReplace(temp, inKeyReg, inValue)
|
||||||
; msgbox, % temp "`n`nRegex:`t" inKey "`nReplacing match with:`t" inValue
|
|
||||||
file := FileOpen(location, "w")
|
file := FileOpen(location, "w")
|
||||||
file.Write(temp)
|
file.Write(temp)
|
||||||
file.Close()
|
file.Close()
|
||||||
|
Reference in New Issue
Block a user