Code: Select all
FileRead, XMLData, %clipboard%/Status.xml ; Read XML file
RegExMatch(XMLData, "s)<ClientName>(.*?)</ClientName>", ClientName) ; Parse for Client
MsgBox, % ClientName1
return
Code: Select all
FileRead, XMLData, %clipboard%/Status.xml ; Read XML file
RegExMatch(XMLData, "s)<ClientName>(.*?)</ClientName>", ClientName) ; Parse for Client
MsgBox, % ClientName1
return
Code: Select all
prodCodes(str) {
Static regex := "([A-Z] *){3,4}\b"
Loop Parse, % str, `n, `r
RegExMatch(A_LoopField, regex, m), out .= RegExReplace(m, "\h+") "`n"
Return Trim(out, "`n")
}
Code: Select all
string := "223344-OPERATIONS 21X700 (Line A)"
MsgBox % RegExReplace(string , "^\d{6}-\K\w+|\([^()]*?\)$")
https://www.autohotkey.com/docs/commands/_Include.htm wrote:FileOrDirName
The path of a file or directory as explained below. This must not contain double quotes, wildcards, or references to non-built-in variables.
I agree with you, for an edge of 29 you can fit 31*3=93 > 92 squares in a 921*112 rectangle using your method
Code: Select all
H = 111yellow111yellow222blue222red222
RegExMatch(H, "i)yellow(([^ybr]+|y+(?!ellow)|b+(?!lue)|r+(?!ed))?)blue(?1)red", m)
MsgBox % m
Code: Select all
Myvar := RegExReplace(Myvar, "(\s|%$)")
Code: Select all
loop, % 43
Hotkey, % Chr(A_Index+47), focus
return
focus:
if !GetKeyState("CapsLock", "T")
StringLower, key, A_ThisHotkey
else
key := A_ThisHotkey
ControlFocus, somecontrol
Send % key
; or
ControlSend, somecontrol, % key, WinTitle
return
Code: Select all
vendor := xmlDoc.getElementsByTagName("man").item[0]
MsgBox % vendor.text
. "`n" vendor.getAttribute("is_retry")
. "`n" vendor.getAttribute("citizen")
. "`n" vendor.getAttribute("gender")
. "`n" vendor.selectSingleNode("name_lat").text