Quick Jisho Search AHK Script

I recently made a very simple AutoHotKey script that, when pressing a hotkey (I have it on Alt + J) will copy the text, open a new tab, and search Jisho for it. Honestly this only saves a few seconds over just opening Jisho yourself, but I personally like it. :stuck_out_tongue:

Script:
!j::
WinActivate, ahk_exe chrome.exe
Send ^c ; Copy highlighted text
Send ^t ; Open new tab
Send ^l ; Shortcut for focusing on the address bar
Sleep 50 ; Give just a bit of time for Chrome to respond
SendInput %clipboard%{Enter} - Jisho.org ; Navigates to Jisho.org
return

Note: Only works in chrome, requires AHK
Hopefully someone will find this useful!

5 Likes

Isnt that basically the same as Search Jisho? :thinking:

5 Likes

I was just wondering if something like this existed
 Thank you!

1 Like

Oof, guess it is. I couldn’t find anything like that before so thank you for letting me know!

I suppose the AHK script will work not only from the browser, but also in other applications like text editors.

1 Like

There’s also this, for Chrome

image

1 Like

I raise you a simpler version which uses your default browser and it doesn’t rely on the browser being open already.

!j::
Run, %comspec% /c start https://jisho.org/search/%clipboard%
Return
2 Likes

Hi there! While studying, i’ve found creating shortcuts quite useful with AutoHotKey. So adding those “shorcuts” here seemed to be just right.

An Autohotkeyscript running at startup can really do wonders!
For example, you put in your clipboard a word/sentence, and then you can use hotkeys!

F2::
search := "https://immersionkit.com/dictionary?keyword="
	. RegExReplace(RegExReplace(Clipboard, " ","%20"),"`r`n","%0A")
Run, chrome.exe %search%
return

F4::
search := "https://translate.google.com?sl=ja&tl=fr&op=translate&text="
	. RegExReplace(RegExReplace(Clipboard, " ","%20"),"`r`n","%0A")
Run, chrome.exe %search%
return

F5::
search := "https://ichi.moe/cl/qr/?r=htr&q="
	. RegExReplace(RegExReplace(Clipboard, " ","%20"),"`r`n","%0A")
Run, chrome.exe %search%
return

F6::
search := "https://jisho.org/search/"
	. RegExReplace(RegExReplace(Clipboard, " ","%20"),"`r`n","%0A")
Run, chrome.exe %search%
return

If you use Anki, i would also suggest using the addon
Copy2Clipboard

and configuring it so as to copy the “Expression” field automatically to your clipboard.

{
    "answerField": "Expression",
    "questionField": "Expression"
}

Don’t forget to “rename” your field in your deck if necessary.

So when i review my anki cards, and i have a doubt about a meaning

i just have to hit the F2, F4, F5 keys and it will automatically open the browser and search for that “expression” .

While talking about anki addons, the “right hand review” addon is nice:
Right hand review addon
It has an option:

    "rate_from_question": true,

When using it, you can easily rate the question even when you only see the front of the card. -:slight_smile:

Have fun :sailboat:

2 Likes