Code: Select all
MailItem.Subject: = clipboard "-> code:"
For example when the clipboard contains this text:
Code: Select all
Sample text "in quotation marks" and "still quotation marks"
Code: Select all
MailItem.Subject: = clipboard "-> code:"
Code: Select all
Sample text "in quotation marks" and "still quotation marks"
Code: Select all
MailItem.Subject: = clipboard "-> code:"
Code: Select all
MailItem.Subject := clipboard "-> code:"
Code: Select all
MailItem.Subject := clipboard " - Code: "
Code: Select all
Clipboard = Sample text "in quotation marks" and "still quotation marks"
Subject := clipboard "-> code:"
MsgBox % Subject
Code: Select all
Clipboard = Sample text "in quotation marks" and "still quotation marks"
MailItem := ComObjActive("Outlook.Application").CreateItem(0)
MailItem.Subject := Clipboard "-> code:"
MailItem.Display
Code: Select all
MsgBox, % CleanString("here is some text with some unwanted™¤µ characters ")
return
CleanString(str) {
loop, % StrLen(str)
if ((c := Ord(SubStr(str, A_Index, 1))) >= 32) && (c <= 126)
clean .= Chr(c)
return clean
}
Code: Select all
CleanString(str) {
return RegExReplace(str, "[^[:ascii:]]")
}
Users browsing this forum: Google [Bot], Rohwedder and 434 guests