Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- #SingleInstance force
- ; Run KanjiTomo: Window key + 'q' button
- #q::
- If WinExist("ahk_class SunAwtFrame") and WinExist("KanjiTomo")
- {
- MsgBox, There is already an instance of Kanjitomo running.
- return
- }
- else
- {
- Run, KanjiTomo.jar, C:\Users\Me\Desktop\Kanjitomo
- sleep 1000
- return
- }
- ; Automatically on/off OCR: Window key + 'x' button
- #x::
- WinActivate KanjiTomo
- MouseGetPos, Xsave, Ysave
- Click 165, 70
- MouseMove, %Xsave%, %Ysave%, 0
- return
- ;Click on Add to List: Window key + 'z' button
- #z::
- WinActivate KanjiTomo
- MouseGetPos, Xsave, Ysave
- Click 173, 284
- sleep 100
- SendEvent, {Enter}
- MouseMove, %Xsave%, %Ysave%, 0
- return
Advertisement
Add Comment
Please, Sign In to add comment