Code: Select all
RegExReplace(Clipboard, "\[\w*?\]\(\[\[\w*?\]\]\)\h+")
Code: Select all
RegExReplace(Clipboard, "\[\w*?\]\(\[\[\w*?\]\]\)\h+")
@mikeyww, thanks didn't realize OnClipboardChange Label was Deprecated.mikeyww wrote: ↑11 Dec 2020, 13:01Easy fix, I think.
Code: Select all
#Persistent OnClipboardChange("ClipChanged") Return ClipChanged(type) { If (type = 1) MsgBox, % RegexReplace(Clipboard, "\W") }
Code: Select all
#Persistent
return
OnClipboardChange:
original := Clipboard
stripped := RegexReplace(original"[.\-\/!,] ")
Clipboard := stripped
return
Code: Select all
WB2.ActiveSheet.Range("B1:B15").Value := WB1.ActiveSheet.Range("A1:A15").Value ; copy from active sheet to active sheet
WB2.Sheets(1).Range("B1:B15").Value := WB1.Sheets(2).Range("A1:A15").Value ; copy from wb1 sheet 2 to wb2 sheet1
Code: Select all
Clipboard := "21001/2020"
RegExMatch(Clipboard, "(\d+)/(\d+)", number)
Clipboard := number1+1 "/" number2
MsgBox % Clipboard
Code: Select all
wb := ComObjCreate("InternetExplorer.Application")
wb.Visible := True
filePath = File:\\%A_Desktop%\IE navigate fails from Variable - AutoHotkey Community.html
wb.Navigate(filePath)
return