below with a lot of effort, since I have no idea of code, I was able to moderately achieve something. but it would be great if some of you programmers could do something real for this purpose. Thank you very much to the community and greetings to all.
The truth is I did not see any program or code of any kind that serves this purpose. probably not looking too far.
Code: Select all
#NoEnv
#Warn
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode 2
hasExecuted := 0
~v::
if (hasExecuted = 0) {
hasExecuted := 1 ; Marcar que el código se ha ejecutado
Run, chrome.exe "http://www.google.com/search?q=traductor español ingles"
WinGet, browserWindowID, ID, ahk_exe chrome.exe
Sleep 600
ControlClick, x62 y500, ahk_id %browserWindowID%, , left
Send ^{Tab}
Send ^{w}
Sleep 30
Send !{Tab}
}
return
~v Up::
if (hasExecuted = 1) {
hasExecuted := 0
Send {CapsLock Down}
Sleep 6000
Send {CapsLock Up}
}
return