Skip to content

Commit

Permalink
v1.109 Fix: AutoReplace was still active when Clipboard History was P…
Browse files Browse the repository at this point in the history
…aused
  • Loading branch information
hi5 committed Sep 3, 2023
1 parent c9fd447 commit 6622505
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### v1.109

* Fix: AutoReplace was still active when Clipboard History was Paused
* Fix: remove debug MsgBox in SlotPaste (cl3apiclass.ahk)

### v1.108

* New: also show timestamp in tooltip (cycle forward, backward, plugin) and search.
Expand Down
8 changes: 5 additions & 3 deletions cl3.ahk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Script : CL3 ( = CLCL CLone ) - AutoHotkey 1.1+
Version : 1.108
Version : 1.109
Author : hi5
Purpose : CL3 started as a lightweight clone of the CLCL clipboard caching utility
which can be found at http://www.nakka.com/soft/clcl/index_eng.html.
Expand Down Expand Up @@ -42,7 +42,7 @@ SetWorkingDir, %A_ScriptDir%
AutoTrim, off
StringCaseSense, On
name:="CL3 "
version:="v1.108"
version:="v1.109"
CycleFormat:=0
Templates:={}
Global CyclePlugins,History,SettingsObj,Slots,ClipChainData ; CyclePlugins v1.72+, others v1.9.4 for API access
Expand All @@ -60,7 +60,7 @@ loop, parse, iconlist, CSV
icon%A_LoopField%:="icon-" A_LoopField ".ico"

; <for compiled scripts>
;@Ahk2Exe-SetFileVersion 1.108
;@Ahk2Exe-SetFileVersion 1.109
;@Ahk2Exe-SetDescription CL3
;@Ahk2Exe-SetCopyright MIT License - (c) https://github.com/hi5
; </for compiled scripts>
Expand Down Expand Up @@ -738,6 +738,7 @@ PasteIt(source="")
If PasteDelay
Sleep % PasteDelay
Send ^v

PasteTime := A_TickCount
oldttext:="", ttext:="", ActiveWindowID:="",ClipboardOwnerProcessName:=""

Expand Down Expand Up @@ -953,6 +954,7 @@ else ; Excel is active; check CF_METAFILEPICT, if not present we can safely stor
If (Clipboard = "") ; or (ScriptClipClipChain = 1) ; avoid empty entries or changes made by script which you don't want to keep
Return

; we could check for AutoReplace or ClipboardHistoryToggle settings here, but is taken care of in AutoReplace()
AutoReplace()

If (Clipboard == History[1].text) ; v1.95
Expand Down
1 change: 1 addition & 0 deletions lib/update.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ update(v)
; "tag_name":"v1.00"
text:=whr.ResponseText
RegExMatch(text,"U)\x22tag_name\x22:\x22\K(.*)\x22",version)
; MsgBox % v ":" version1 ":" version
If (v <> version1) and (version <> "")
{
MsgBox, 68, New version of CL3, A new version seems to be available.`nVisit website to download it?`n`n(See releases/assets on Github)
Expand Down
4 changes: 3 additions & 1 deletion plugins/AutoReplace.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ Return

AutoReplace()
{
global AutoReplace,IconExe,AutoReplaceTrayTip
global AutoReplace,IconExe,AutoReplaceTrayTip,ClipboardHistoryToggle
if !AutoReplace.Settings.Active ; bypass AutoReplace
Return clipboard
if ClipboardHistoryToggle ; bypass AutoReplace
Return clipboard
if RegExMatch(IconExe, "im)\\(" StrReplace(AutoReplace.Settings.Bypass,",","|") ")$") ; bypass AutoReplace
Return
ClipStore:=ClipboardAll ; store all formats
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ But some unique [features](#features) have been added making it more versatile "

Intended for AutoHotkey Unicode (64-bit version of AutoHotkey is automatically Unicode).

Relies standard copy/paste shortcuts for the applications you are using, so <kbd>Ctrl</kbd>+<kbd>c</kbd> and <kbd>Ctrl</kbd>+<kbd>v</kbd>, and right click "copy" via mouse actions.
Programs that rely on other shortcuts to store/restore clipboard contents may not work (e.g. vim).

Forum thread [https://autohotkey.com/boards/viewtopic.php?f=6&t=814](https://autohotkey.com/boards/viewtopic.php?f=6&t=814)

### Shortcuts
Expand Down

0 comments on commit 6622505

Please sign in to comment.