But it doesn't work because everything has the different context menu.
Should I make other scripts only for the context menu handling on everything.exe?
I tried a script for everything. But I can't use the same hotkey for the same action for all the 3 programs.
In that case, should I put the script to the other script file?
Code: Select all
If WinActive("ahk_exe Explorer.exe") or WinActive("ahk_exe dopus.exe")
#j:: ;edit
Send, {space}
clips:=Clipboardall
Clipboard:=""
Send,^c
ClipWait, 0
path:=Clipboard
Clipboard:=clips
if ErrorLevel
return
Run Edit %path%, , Max UseErrorLevel
return
#o:: ;Open
send, {appskey}
sleep 100
;send, {o}
;sleep 100
;send, {enter}
Return
#p:: ;copy file path
Send, {space}
tmp:=Clipboardall
Clipboard:=""
Send,^c
ClipWait, 0
path:=Clipboard
Clipboard:=tmp
if ErrorLevel
return
;~ Msgbox, % "Filepath: " path
ToolTip % "Copied to" Clipboard:=path, 250, 500
Sleep 3000
ToolTip
return
#a:: ;run
send, {appskey}
send, {a}
send, {enter}
Return
#z:: ;unzip
send, {appskey}
send, {z}
send, {enter}
If winexist("Bandizip")
Winclose, "Bandizip"
Return