Search found 34 matches

by anhnha
30 Aug 2018, 04:27
Forum: Ask For Help
Topic: Text to speech for Korean
Replies: 1
Views: 229

Re: Text to speech for Korean

I installed Microsoft Speech Platform - Runtime Languages (Version 11) for Korean voice but it has not worked yet.
https://www.microsoft.com/en-us/downloa ... x?id=27224
Does anyone know how to fix this?
by anhnha
29 Aug 2018, 10:33
Forum: Ask For Help
Topic: Text to speech for Korean
Replies: 1
Views: 229

Text to speech for Korean

I am trying to create a text to speech for Korean language. However, the code below doesn't work for Korean.
Does anyone know any way to make text to speech for Korean?

Code: Select all

^1::
clipboard := ""
Send ^c
ClipWait, 0.5
say := clipboard
ComObjCreate("SAPI.SpVoice").Speak(say) ; announce text
return
by anhnha
26 Aug 2018, 13:38
Forum: Ask For Help
Topic: Improve a code to make it faster
Replies: 12
Views: 1467

Re: Improve a code to make it faster

It works great! Thanks a lot.
by anhnha
26 Aug 2018, 10:23
Forum: Ask For Help
Topic: Improve a code to make it faster
Replies: 12
Views: 1467

Re: Improve a code to make it faster

I used tmplinshi's code and sometimes I got this error below. Can anyone know how to get rid of that error? https://autohotkey.com/boards/download/file.php?mode=view&id=5696 Another problem is that it saves all words that you have consulted and with time this takes a lot of windows space as below. h...
by anhnha
25 Aug 2018, 13:40
Forum: Ask For Help
Topic: Improve a code to make it faster
Replies: 12
Views: 1467

Re: Improve a code to make it faster

Thank you. Both approaches are good. Currently tmplinshi's approach is fast enough for me. So I will save your approach for future project.
by anhnha
25 Aug 2018, 07:07
Forum: Ask For Help
Topic: Improve a code to make it faster
Replies: 12
Views: 1467

Re: Improve a code to make it faster

Try this: #NoEnv SetBatchLines, -1 #a:: Clipboard := "" Send, ^c ClipWait WB.Navigate("https://korean.dict.naver.com/kovidict/vietnamese/#/search?query=" Clipboard) Gui, Show return _InitGUI() { static _ := _InitGUI() global WB w := 509 h := 728 x := A_ScreenWidth - w -20 y := A_ScreenHeight/2 - h/...
by anhnha
25 Aug 2018, 06:08
Forum: Ask For Help
Topic: Improve a code to make it faster
Replies: 12
Views: 1467

Re: Improve a code to make it faster

How can I know how many definition a word has so I can collect or?
Response.searchResultMap.searchResultListMap.MEANING.items[1].meansCollector[1].means[1].value
For example, this can have .means[1] to .means[5] and some words maybe .means[3]
by anhnha
21 Aug 2018, 01:21
Forum: Ask For Help
Topic: Improve a code to make it faster
Replies: 12
Views: 1467

Re: Improve a code to make it faster

'its slow' is meaningless. identify the bottleneck and tackle it accordingly. is assigning to the clipboard slow? is opening the browser slow? is running the query slow? are all those WinXXX calls slow? here as a proof of concept, a way to get the data without opening a browser(for the most part): ...
by anhnha
20 Aug 2018, 16:34
Forum: Ask For Help
Topic: Improve a code to make it faster
Replies: 12
Views: 1467

Improve a code to make it faster

Below is a code to consult a dictionary. Is there any way to optimize this code and make it faster? Currently it is quite slow. SetTitleMatchMode,2 WinTitle=KO-VI dictionary ChromeW=509 ChromeH=728 #a:: Clipboard= Send ^c ClipWait Run chrome.exe --new-window https://korean.dict.naver.com/kovidict/vi...
by anhnha
20 Aug 2018, 15:45
Forum: Ask For Help
Topic: scroll two google chrome windows togethers
Replies: 3
Views: 339

Re: scroll two google chrome windows togethers

Thank you very much. I'd like to change the hotkey q by middle mouse scroll. Also it would be great if they can scroll together both directions downward and upward. How to modify this? I changed it like this: WheelDown:: ;google chrome - scroll multiple windows WinGet, hWnd1, ID, A DetectHiddenWindo...
by anhnha
20 Aug 2018, 06:15
Forum: Ask For Help
Topic: scroll two google chrome windows togethers
Replies: 3
Views: 339

scroll two google chrome windows togethers

I am planing to write a small code for studying Korean by reading comic in two languages in parallel. I will open two windows on chrome, one is in Korean and the other is in Vietnamese. If I choose a place to be start, then from that if I scroll one page, the other will move exactly the same. Could ...
by anhnha
18 Aug 2018, 09:28
Forum: Ask For Help
Topic: convert c++ to ahk Topic is solved
Replies: 3
Views: 547

Re: convert c++ to ahk Topic is solved

cool! Thank you very much Flipeador! I didn't expect it is that fast.
by anhnha
18 Aug 2018, 08:22
Forum: Ask For Help
Topic: convert c++ to ahk Topic is solved
Replies: 3
Views: 547

convert c++ to ahk Topic is solved

Could anyone help me to convert the following program C++ to AHK? /* * Compiled using: * g++ main.cpp */ #include <windows.h> #include <commctrl.h> #include <iostream> int main(void) { HWND hTrayWnd = FindWindowEx( FindWindowEx( FindWindowEx( FindWindow("Shell_TrayWnd", NULL) , NULL, "TrayNotifyWnd"...
by anhnha
16 Aug 2018, 08:15
Forum: Ask For Help
Topic: Read status of a toggle mode in a software
Replies: 1
Views: 320

Read status of a toggle mode in a software

I am using a small Unikey software from http://unikey.vn/vietnam/#nav4 to type Vietnamese in Telex mode. The software has a hot key ctrl + shift to toggle between Vietnamese and English mode. I have an autohotkey program that needs to know the status of Unikey whether it is in English or Vietnamese ...
by anhnha
16 Aug 2018, 01:43
Forum: Ask For Help
Topic: ImageSearch problem with IME
Replies: 4
Views: 465

Re: ImageSearch problem with IME

I used this code and it returns a code for Korean language. However, even in Korean language mode, there is still an option to toggle between Korean and English by toggling the right ALT buttion. Is there any way to check the status A or 가 in Korean language? F11:: SetFormat, Integer, H WinGet, WinI...
by anhnha
16 Aug 2018, 01:20
Forum: Ask For Help
Topic: ImageSearch problem with IME
Replies: 4
Views: 465

Re: ImageSearch problem with IME

Could you not check the current input language ? https://autohotkey.com/board/topic/116538-detect-which-language-is-currently-on/#entry672236 I think you misunderstood me a bit. In may case, the language is already in Korean Microsoft IME. However, in Korean mode, there is an ALT buttion to toggle ...
by anhnha
15 Aug 2018, 23:23
Forum: Ask For Help
Topic: ImageSearch problem with IME
Replies: 4
Views: 465

Re: ImageSearch problem with IME

How can I check if IME is disabled or not with autohotkey?
by anhnha
15 Aug 2018, 13:09
Forum: Ask For Help
Topic: use function keys F1 and F2 with autohotkey
Replies: 2
Views: 267

Re: use function keys F1 and F2 with autohotkey

...and change it so that the F1-12 key are enabled by default and the Fn-Functions only when the Fn key is pressed.
This is already my current setting. However, when I press F1, the projector appears in stead of my autohotkey function.
by anhnha
15 Aug 2018, 13:06
Forum: Ask For Help
Topic: ImageSearch problem with IME
Replies: 4
Views: 465

ImageSearch problem with IME

I am using ImageSearch to detect the typing mode for Hangul or English.
Please look at the image below for the problem description. Hope someone can help me out!

Image
by anhnha
15 Aug 2018, 12:39
Forum: Ask For Help
Topic: use function keys F1 and F2 with autohotkey
Replies: 2
Views: 267

use function keys F1 and F2 with autohotkey

I am using Dell inspiron n4010. I would like to use function keys F1 and F2 for my autohotkey but unfortunately it is already used for projector and wifi. I don't really need these functions now so how can I disable function keys and use it for my autohotkey project?

Go to advanced search