Clickable Tooltips for Pasting
I was hoping tha someone could modify this script to make it so that the tooltips are allowed to paste when they are clicked upon.
The windows key and v key are used to cycle through the entries that were copied earlier. I use this to mainly copy text and rename files easier.
The reason that I use this script as opposed to others is that this script does not steal the focus for renaming files.
clip_index = 0
clip_max = 5
clip_1 = Text
clip_active = 1
goto clip_end_label
OnClipboardChange:
addClip(clipboard)
clip_active = 1
addClip(text)
{
old := clip_%clip_index%
clip_index :
= mod(clip_index
+1,clip_max
) clip_%clip_index% = %text%
}
#V::
clip_tmp=1
v_was=1
loop
{
Loop %clip_max%
{
index :
= mod(clip_max
+clip_index
-A_Index
+1,clip_max
) element := clip_%index%
element := ShortenClip(element)
i1 := A_Index+1
ToolTip, %element%
, 30+60*(A_Index
=clip_tmp
), 60*A_Index
-50,i1
}
res := GetKeyState("LWin","P")+GetKeyState("RWin","P")
esc__ := GetKeyState("Escape","P")
res := GetKeyState("V","P")
loop
{
clip_tmp :
= 1+mod(clip_tmp
,clip_max
) index :
= mod(clip_max
+clip_index
-clip_tmp
+1,clip_max
) element := clip_%index%
}
v_was := res
}
Loop %clip_max%
{
i1 := A_Index+1
}
index :
= mod(clip_max
+clip_index
-clip_tmp
+1,clip_max
)clip_active =
clipboard := clip_%index%
ShortenClip(text)
{
Loop, Parse, text, `n
{
out = %out%%outline%`n
{
out = %out%.....
}
}
}
clip_end_label: