I made an AutoHotKey script that does the following on an Alt + Click:
- Double-clicks on the current position
- Selects a word
- Copies the word to the clipboard
- Activates a second program
- Pastes the word into the program (a dictionary)
- Presses Enter
The problem is that it sometimes works in 80-90% of applications - in others it will work much less, sometimes only getting as far as pasting the text but not pressing Enter.
Below is the script so far, any ideas how to get it fully working?
!LButton::
IfWinExist PCD
{
Click 2
Send, ^c
WinActivate PCD
WinWaitActive, PCD
Send, ^v
Send {Enter}
}
return