Below is my attempt at that function. But when I go to paste what has been (presumably) copied I get an error that states:
[and then it points to my line 352 (in PasteRoutine) which says" Clipboard := ClipboardData%PasteID%"]Warning: This variable has not been assigned a value.
Specifically: ClipboardData3 (a global variable)
Any suggestions would be appreciated.
Thank you,
John Vinci
Code: Select all
;######################################################
; Copy/Paste Functions
;######################################################
global ClipboardData1 = , ClipboardData2 = , ClipboardData3 =
CopyRoutine(CopyID)
{
global
local oldClipboard := ClipboardAll ; Save current clipboard to variable
Send ^c ; Copy text into Clipboard
ClipWait 2 ; wait for it to be copied
if ErrorLevel
{
Clipboard := oldClipboard
}
ClipboardData%CopyID% := ClipboardAll ;
Clipboard := oldClipboard
oldClipboard =
}
PasteRoutine(PasteID)
{
global
local oldClipboard := ClipboardAll
Clipboard := ClipboardData%PasteID%
Send ^v ; Paste Text
Clipboard := oldClipboard
oldClipboard =
}
<#<^1:: CopyRoutine(1)
<#<^2:: CopyRoutine(2)
<#<^3:: CopyRoutine(3)
<#<^4:: PasteRoutine(1)
<#<^5:: PasteRoutine(2)
<#<^6:: PasteRoutine(3)