Read status of a toggle mode in a software

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
anhnha
Posts: 116
Joined: 08 Aug 2018, 02:46

Read status of a toggle mode in a software

16 Aug 2018, 08:15

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 mode.
I tried use ImageSearch but it is too cumbersome and its is not adaptive to every computer. Does anyone know any method to read it status?

Image
Attachments
unikey.png
unikey.png (190.1 KiB) Viewed 553 times
YMP2
Posts: 48
Joined: 20 Apr 2014, 06:55

Re: Read status of a toggle mode in a software

16 Aug 2018, 13:25

If that mode is the same for all windows, put its initial state in a variable and toggle it each time you press Ctrl+Shift. That way you will know its current state.

If it's different for each window, then it's more complex because you will have to maintain such a variable for each window, but it's also feasible.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ntepa and 242 guests