Skip to content

Commit 637f68b

Browse files
committed
added clipjump_x64.ahk to run x64 AHK on 64-bit systems
1 parent a10d453 commit 637f68b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Clipjump.ahk

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ ListLines, Off
3535
#HotkeyInterval 1000
3636
#MaxHotkeysPerInterval 1000
3737

38-
global ini_LANG := "" , H_Compiled := (Substr(A_AhkPath, Instr(A_AhkPath, "\", 0, 0)+1) == "Clipjump.exe") && (!A_IsCompiled) ? 1 : 0
39-
global mainIconPath := FileExist("Clipjump.exe") ? "Clipjump.exe" : "icons/icon.ico"
38+
global ini_LANG := "" , H_Compiled := RegexMatch(Substr(A_AhkPath, Instr(A_AhkPath, "\", 0, 0)+1), "iU)^(Clipjump).*(\.exe)$") && (!A_IsCompiled) ? 1 : 0
39+
global mainIconPath := H_Compiled || A_IsCompiled ? A_AhkPath : "icons/icon.ico"
4040

4141
;*********Program Vars**********************************************************
4242
; Capitalised variables (here and everywhere) indicate that they are global

Clipjump_x64.ahk

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#Notrayicon
2+
3+
run, %A_AhkPath% "%A_ScriptDir%\Clipjump.ahk"

lib/aboutGUI.ahk

+1-4
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@ trayMenu(destroy=0){
9090
}
9191

9292
;Tray Icon
93-
if !(A_isCompiled) && !(H_COMPILED) ;Important for showing Cj's icon in the Titlebar of GUI
94-
Menu, Tray, Icon, % mainIconPath
95-
if H_COMPILED
96-
Menu, Tray, Icon, % A_AhkPath
93+
Menu, Tray, Icon, % mainIconPath
9794
Menu, Tray, NoStandard
9895
Menu, Tray, Add, % TXT.ABT__name " " PROGNAME, main
9996
Menu, Tray, Tip, % PROGNAME " {" CN.Name "}"

0 commit comments

Comments
 (0)