É possível usar AutoHotkeys para enviar dados de formulário em um site?

0

Eu configurei teclas de atalho para deixar-me destacar uma palavra em uma língua estrangeira (FR, SP, GE) e com base na tecla de atalho eu posso conjugá-la, ouvir um humano pronunciá-la ou defini-la no contexto. No entanto, o site que eu quero usar para conjugar verbos alemães não envia a palavra na url. Eu gosto deste conjugador o melhor: link e eu não sei muito sobre o Jquery nem sobre como as teclas de atalho podem ser usadas para enviar um verbo nos dados do formulário nesta página. Alguém sabe se isso é possível? Existem muitos conjugadores que eu poderia usar o método de URL, mas eu quero usar este site.

#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.
#f::
clipboard=
send, {ctrl down}c{ctrl up}
ClipWait, .5
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""http://forvo.com/search/"%clipboard%"/fr""
Return
#g::
clipboard=
send, {ctrl down}c{ctrl up}
ClipWait, .5
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""http://forvo.com/search/"%clipboard%"/de/""
Return
#s::
clipboard=
send, {ctrl down}c{ctrl up}
ClipWait, .5
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""http://forvo.com/search/"%clipboard%"/es/""
Return

#!f::
clipboard=
send, ^c
ClipWait, .5
StringReplace, totranslate, clipboard, %A_Space%, +, All
;MsgBox, %totranslate% = %clipboard%
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""http://context.reverso.net/translation/french-english/"%totranslate%"
Return

#!g::
clipboard=
send, ^c
ClipWait, .5
StringReplace, totranslate, clipboard, %A_Space%, +, All
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""http://context.reverso.net/translation/german-english/"%totranslate%"
Return

#!s::
clipboard=
send, ^c
ClipWait, .5
StringReplace, totranslate, clipboard, %A_Space%, +, All
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""http://context.reverso.net/translation/spanish-english/"%totranslate%"
Return

+#g::
clipboard=
send, {ctrl down}c{ctrl up}
ClipWait, .5
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""http://www.verbix.com/webverbix/German/"%clipboard%".html""
Return

+#f::
clipboard=
send, {ctrl down}c{ctrl up}
ClipWait, .5
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""http://www.collinsdictionary.com/dictionary/french-english/conjugation/"%clipboard%"
Return

+#s::
clipboard=
send, ^c
ClipWait, .5
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""http://www.spanishdict.com/conjugate/"%clipboard%"
Return

#+!g::
clipboard=
send, {ctrl down}c{ctrl up}
ClipWait, .5
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ""https://en.wiktionary.org/wiki/"%clipboard%"#Declension""
Return
    
por user5389726598465 28.03.2017 / 02:29

1 resposta

1

Você poderia imitar a maneira como um humano usaria o site:

+#s::
clipboard=
send, ^c
ClipWait, .5
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://deutsch.lingolia.com/en/grammar/conjugator"

WinWait, Conjugate German Verbs - Lingolia German - Google Chrome, 
IfWinNotActive, Conjugate German Verbs - Lingolia German - Google Chrome, , WinActivate, Conjugate German Verbs - Lingolia German - Google Chrome, 
WinWaitActive, Conjugate German Verbs - Lingolia German - Google Chrome, 
MouseClick, left,  460,  399
Sleep, 100
Send, {TAB}{CTRLDOWN}v{CTRLUP}{ENTER}


Return
    
por 28.03.2017 / 03:04