first commit
This commit is contained in:
1 parent
5b00bd10d0
commit
d15e8185bb
14 files changed
+203
-371
No files matched your search
@@ -0,0 +1,29 @@
|
||||
const wps = {
|
||||
app: wps.WpsApplication(),
|
||||
replace: () => {
|
||||
Selection.SetRange(16, 16);
|
||||
Selection.Find.Wrap = wdFindContinue;
|
||||
(obj => {
|
||||
obj.Text = "1";
|
||||
obj.Forward = true;
|
||||
obj.Wrap = wdFindContinue;
|
||||
obj.MatchCase = false;
|
||||
obj.MatchByte = true;
|
||||
obj.MatchWildcards = false;
|
||||
obj.MatchWholeWord = false;
|
||||
obj.MatchFuzzy = false;
|
||||
obj.Replacement.Text = "2";
|
||||
})(Selection.Find);
|
||||
(obj => {
|
||||
obj.Style = "";
|
||||
obj.Highlight = wdUndefined;
|
||||
(obj => {
|
||||
obj.Style = "";
|
||||
obj.Highlight = wdUndefined;
|
||||
})(obj.Replacement);
|
||||
})(Selection.Find);
|
||||
Selection.Find.Execute(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, wdReplaceAll, undefined, undefined, undefined, undefined);
|
||||
Selection.Find.Replacement.Text = "2";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user