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.

Emulate Keystrokes cannot send special chars?

Questions and comments specific to a particular plugin should go here.
Post Reply
eadmaster
Posts: 7
Joined: Sat Oct 26, 2013 2:13 pm
Location: Italy
Contact:

Emulate Keystrokes cannot send special chars?

Post 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
skribb
Experienced User
Posts: 228
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

Re: Emulate Keystrokes cannot send special chars?

Post 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
Automation is life.

Win7 64bit
EG: v0.5.0-rc4
Post Reply