Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

how to type a cyrillic character through eventGhost?

If you have a question or need help, this is the place to be.
Post Reply
genesys
Posts: 1
Joined: Wed Jun 03, 2009 1:00 pm

how to type a cyrillic character through eventGhost?

Post by genesys »

hey there!

I'd like to use eventGhost in order to transliterate on the fly my latin text into cyrillic, in the way for example the online transliteration tool translit.cc does.

in the basic setup i'd like to replace single characters. for example d->ð┤ .when i type the 'd' key i want it to be blocked and instead the cyrillic character 'ð┤' shall be written.

If that works, the extension would be to replace certain sequences of keystrokes by single cyrillic characters. for example ja->ÐÅ. This means, if the 'j' key is hit, it should first be replaced by ð╣ (since j->ð╣) - but if then the 'a' keys follows directly, the ð╣ should be deleted (backspace) and replaced by ÐÅ.

So now - how can i do that? I don't even manage to do the basic mapping, since the keystroke actions don't allow me to type cyrillic characters...

Any hint?
Thank you!
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: how to type a cyrillic character through eventGhost?

Post by stottle »

Typing a cyrillic character can be done using the eg.SendKeys function if you are sending the keystrokes to a particular window. That would be the easiest way to output unicode, since you can just use unicode in the function.

If you want to emit a keystroke to the operating system and let the OS decide where to send it, you should use the SendInput function (see an example here).

The other part of the problem is collecting the original keyboard input and keeping that from being sent. eg has a Keyboard plugin, which when started "steals" the keyboard input. If it finds a macro that uses a particular keypress, then that macro is called when that keypress is seen. That's probably not what you want, since you'd have to write macros for every keystroke and you couldn't map any keystroke sequences. You'd have to write some code, but you could create a new plugin based on that Keyboard that stores sequences of keystrokes until it can tell if there is a sequence that makes to a new key....

Brett
Post Reply