[v1] a suggestion for programmers

Discuss Autohotkey related topics here. Not a place to share code.
Forum rules
Discuss Autohotkey related topics here. Not a place to share code.
CH3RNO
Posts: 2
Joined: 17 May 2023, 23:53

[v1] a suggestion for programmers

Post by CH3RNO » 27 May 2023, 19:17

Hello everyone, I would like to suggest some code or program that breaks the language barrier a bit, I mean for example: make a voice translation using for example google chrome translator to later be able to reproduce it through the microphone, for those people like I who play online games where communication is the main thing.
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

Return to “General Discussion”