I get a temp solution with autohotkey and vimium plugin in chrome. It only works for Chrome with vimium installed.
This script check whether an active window with title “My TiddlyWiki” in chrome.exe and clipboard has a image.
This script send keystrokes into Tiddlywiki. Caution to use this script as it might cause some unexpected results. Best to test line by line.
ClickFromLeft(_X,_Y){
CoordMode, mouse, Relative
WinGetActiveStats, Title, width, height, x,y
_X := _X
_Y := height / 2
Click %_X%, %_Y%
}
setTitleMatchMode 1
#IfWinActive, ahk_exe chrome.exe
#IfWinActive, My TiddlyWiki
#f::
if DllCall(“IsClipboardFormatAvailable”, “Uint”, 2) ;2:CF_BITMAP
{
send ^v
sleep 1000
ClickFromLeft(50,1)
sleep 100
send /
sleep 100
send image.png
Sleep 100
Send {Enter}
Sleep 100
Send {Tab}
Sleep 100
Send {Enter}
Sleep 100
Send {Tab}
Sleep 100
FormatTime, time, A_now, yyyyMMddHHmmss
Send image%time%.png
Sleep 1000
Send {Tab}
Sleep 100
Send {Tab}
Sleep 100
Send {Enter}
Sleep 100
Send {Tab}
Sleep 100
Send {Tab}
Sleep 100
Send {Enter}
}
else
{
msgbox Please copy a image
}
return
#IfWinActive
#IfWinActive