Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion Clipjump.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ ListLines, Off
#KeyHistory 0
#HotkeyInterval 1000
#MaxHotkeysPerInterval 1000
#Persistent ; Prevent the script from exiting automatically.
DetectHiddenWindows, on

OnExit("ExitFunc")

global ini_LANG := "" , H_Compiled := RegexMatch(Substr(A_AhkPath, Instr(A_AhkPath, "\", 0, 0)+1), "iU)^(Clipjump).*(\.exe)$") && (!A_IsCompiled) ? 1 : 0
global mainIconPath := H_Compiled || A_IsCompiled ? A_AhkPath : "icons/icon.ico"
Expand Down Expand Up @@ -1339,11 +1343,14 @@ copyFile:
try Clipboard := selectedfile
CopyMessage := MSG_TRANSFER_COMPLETE " {" CN.Name "}"
return

; convert file path \ to / to make it usable in R

copyFolder:
copyMessage := MSG_FOLDER_PATH_COPIED
openedFolder := GetFolder()
if ( openedfolder != "" )
StringReplace, openedFolder, openedFolder, \, /, All
try Clipboard := openedFolder
copyMessage := MSG_TRANSFER_COMPLETE " {" CN.Name "}"
return
Expand Down Expand Up @@ -1661,4 +1668,14 @@ Receive_WM_COPYDATA(wParam, lParam){
#include %A_ScriptDir%\lib\settingsHelper.ahk
#include *i %A_ScriptDir%\plugins\_registry.ahk

;------------------------------------------------------------------- X -------------------------------------------------------------------------------
;------------------------------------------------------------------- X -------------------------------------------------------------------------------

;Force close function to unload Clipjump on exit. Requires Nircmd

ExitFunc()
{

WinGet pid, PID, %A_ScriptFullPath%
Process, Close, %pid%
; Do not call ExitApp -- that would prevent other OnExit functions from being called.
}
3 changes: 1 addition & 2 deletions Clipjump_x64.ahk
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#Notrayicon

run, %A_AhkPath% "%A_ScriptDir%\Clipjump.ahk"
run, *RunAs %A_AhkPath% "%A_ScriptDir%\Clipjump.ahk"
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Clipjump

[Download](https://github.com/aviaryan/Clipjump/releases)
[Download](https://github.com/sobuj53/Clipjump/releases)
[Online Manual](http://clipjump.sourceforge.net/docs/)

Clipjump is a Multiple-Clipboard management utility for Windows.
Expand All @@ -27,4 +27,4 @@ Docs can be compiled using Jekyll and then Microsoft's HHC. First build the webs

#### Adding Plugins
Please add your plugins to the [clipjump-addons](https://github.com/aviaryan/clipjump-addons) repository. This repo only contains plugins distributed with official Clipjump release.
If I realise your plugin is useful for the community, I will distribute it officially and hence it will be added to this repository. See [#68](https://github.com/aviaryan/Clipjump/issues/68)
If I realise your plugin is useful for the community, I will distribute it officially and hence it will be added to this repository. See [#68](https://github.com/aviaryan/Clipjump/issues/68)
4 changes: 3 additions & 1 deletion lib/History GUI Plug.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,9 @@ addHistoryImage(imgpath, timestamp){
; timestamp is in A_Now format
timestamp := convertTimeSql(timestamp)
fptr := FileOpen(imgpath, "r")
size := fptr.Length
if fptr.Length
size := fptr.Length
else size := 0
fptr.Close()
while (FileExist(rname := "cache\history\" getRandomStr(15) ".jpg")){
; loop till new file name
Expand Down
Loading