Page 1 of 1

Emulate Keystrokes cannot send special chars?

Posted: Thu Jun 04, 2015 1:12 pm
by eadmaster
I'd like to send single special char keystrokes triggered by some linux-like key combinations.
For instance, with my Italian keyboard:
with AltGr + ' -> send `
with AltGr + ì -> send ~

when using the Emulate Keystrokes plugin i get this error:

Code: Select all

         SendKeys: Can't translate character '~' to key sequence!
         Error in Action: "Emulate Keystrokes: ~"
         Traceback (most recent call last) (1640):
           File "C:\PortableApps\EventGhost\App\eg\Classes\ActionBase.py", line 170, in CallWrapper
             return self(*args)
           File "C:\PortableApps\EventGhost\App\plugins\Window\SendKeys.py", line 122, in __call__
             eg.SendKeys(hwnd, data, useAlternateMethod)
           File "C:\PortableApps\EventGhost\App\eg\WinApi\SendKeys.py", line 434, in __call__
             self.SendRawCodes2(keyData, hwnd)
           File "C:\PortableApps\EventGhost\App\eg\WinApi\SendKeys.py", line 484, in SendRawCodes2
             for virtualKey in block:
         TypeError: 'NoneType' object is not iterable

Re: Emulate Keystrokes cannot send special chars?

Posted: Tue Jul 21, 2015 5:55 pm
by skribb
I can'tr help you with the plugin itself but I can suggest a workaround.

Instead of using "emulate keystroke", you can use "start application" and point to a compiled Autohotkey script (exe file). Autohotkey can easily be scripted to emulate any keystroke.

http://ahkscript.org/docs/commands/Send.htm