#drscript #This drScript appends the selected text to the Clipboard #francescoa 2004/06/24 #version 1.0 wx.TheClipboard.Open() do = wx.TextDataObject() cur_clip_data ="" tmp = wx.TheClipboard.GetData(do) if tmp: cur_clip_data = do.GetText() cur_clip_data += DrDocument.GetSelectedText() wx.TheClipboard.SetData(wx.TextDataObject(cur_clip_data)) wx.TheClipboard.Close()
for "cut and append", following last line should be added: DrDocument.ReplaceSelection ('')
Hi again,
I putted the following four scripts at:
http://berg.heim.at/anden/421194/CopyAppend.py http://berg.heim.at/anden/421194/CutAppend.py http://berg.heim.at/anden/421194/searchwordundercursor.py http://berg.heim.at/anden/421194/CopyWordToClipboard.py
I think, the filenames are selfspeeking.
CopyWordToClipboard copies the current word under the cursor into the clipboard.
update of:
http://berg.heim.at/anden/421194/CopyAppend.py http://berg.heim.at/anden/421194/CutAppend.py
is nothing selected: copy/cut current line.
The CopyAppend and CutAppend DrScrips are not needed anymore, if the CopyCutPaste Extend plugin is used.
the searchwordundercursor.py is out of date; they are replaced by QuickSearchForward.py and QuickSearchBackware.py
Log in to post a comment.
#drscript
#This drScript appends the selected text to the Clipboard
#francescoa 2004/06/24
#version 1.0
wx.TheClipboard.Open()
do = wx.TextDataObject()
cur_clip_data =""
tmp = wx.TheClipboard.GetData(do)
if tmp: cur_clip_data = do.GetText()
cur_clip_data += DrDocument.GetSelectedText()
wx.TheClipboard.SetData(wx.TextDataObject(cur_clip_data))
wx.TheClipboard.Close()
for "cut and append", following last line should be added:
DrDocument.ReplaceSelection ('')
Hi again,
I putted the following four scripts at:
http://berg.heim.at/anden/421194/CopyAppend.py
http://berg.heim.at/anden/421194/CutAppend.py
http://berg.heim.at/anden/421194/searchwordundercursor.py
http://berg.heim.at/anden/421194/CopyWordToClipboard.py
I think, the filenames are selfspeeking.
CopyWordToClipboard copies the current word under
the cursor into the clipboard.
update of:
http://berg.heim.at/anden/421194/CopyAppend.py
http://berg.heim.at/anden/421194/CutAppend.py
is nothing selected: copy/cut current line.
The CopyAppend and CutAppend DrScrips are not needed anymore, if the CopyCutPaste Extend
plugin is used.
the searchwordundercursor.py
is out of date; they are replaced by
QuickSearchForward.py and QuickSearchBackware.py