Autoremote plugin for Eventghost - Non-ASCII characters

Discussion in 'EventGhost' started by mat4444, Jul 1, 2018.

  1. mat4444

    mat4444 Member

    Joined:
    Nov 13, 2017
    Messages:
    47
    Likes Received:
    0
    Hello everyone,

    I followed this great tutorial : http://forum.joaoapps.com/index.php?resources/open-app-on-windows-with-voice-command.111/ to open software on my computer (and tweaked it to make it work with Google Home).
    However, the autoremote plugin for Eventghost does not react to non-ASCII characters (such as accented letters : é, è, ê etc., and they are very frequent in my language). -> There is nothing in the Eventghost log.

    If I disable port 1818 forwarding in Join options, I am able to see the Chrome push notification with the proper accented characters. (So there is nothing wrong with Join configuration).
    Is there a configuration/option so that the Autoremote plug-in can react to non-ascii characters ?

    Thank you ,

    Mathieu
     
    Last edited: Aug 21, 2020
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hi there. Can't reproduce this unfortunately. If I send João for example, the event appears in EventGhost.... Can you try with that?
     
  3. mat4444

    mat4444 Member

    Joined:
    Nov 13, 2017
    Messages:
    47
    Likes Received:
    0
    Hello,
    No, it does not work with João :( ... Only Joao without accent, as you can see below
    (I tried many times with accented characters --> nothing in the log)

    [​IMG]
    I am using windows 7 64bits, Eventghost 0.4.1.r1722 (2016) (Python 2.x) , Autoremote Plugin 1.991006.

    Thanks,
    Mat
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
  5. mat4444

    mat4444 Member

    Joined:
    Nov 13, 2017
    Messages:
    47
    Likes Received:
    0
    No luck.
    The original plugin and the one you sent are identical.
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Oh you're right, sorry... Will have to try to figure out what's happening then... seems to work for me... :/
     
  7. mat4444

    mat4444 Member

    Joined:
    Nov 13, 2017
    Messages:
    47
    Likes Received:
    0
    Hello there,
    Have you had a chance to look at this issue ?
    Or maybe could you send me your own python script if that works for you ?

    Thanks,
    Mat
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Unfortunately I haven't been able to find out what the problem was, sorry :(
     
  9. mayhutbui

    mayhutbui New Member

    Joined:
    Jul 27, 2018
    Messages:
    1
    Likes Received:
    0
    Good luck for you!
     
  10. mat4444

    mat4444 Member

    Joined:
    Nov 13, 2017
    Messages:
    47
    Likes Received:
    0
    Hello, I am still trying to solve this issue.
    By any chance, could it be a Windows version issue ? I may change to Windows 10 if you think that will help.
    Or is it purely Python / Eventghost related ?
     
  11. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Unfortunately I really don't know :( I can't reproduce the issue on my side...
     
  12. FioRe

    FioRe New Member

    Joined:
    Jun 14, 2019
    Messages:
    3
    Likes Received:
    0
    Sorry about necroposting, but i noticed i have quite the same problem. The only difference is that i'm trying to send out an AutoRemote message within EventGhost.
    Whenever the message contains an accented letter, the plugin fires an error and the message is not sent.

    Attached a screenshot of an example, with the string i'm trying to send and the error in EG.

    EventGhost v0.4.1.r1722
    AutoRemote Plugin v1.991009


    https://drive.google.com/file/d/1poBugEISVmQ3n7eSgpvICJSj6HljFu_m/view?usp=sharing
     
  13. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Does it not work with the ã character either for example?
     
  14. FioRe

    FioRe New Member

    Joined:
    Jun 14, 2019
    Messages:
    3
    Likes Received:
    0
  15. FioRe

    FioRe New Member

    Joined:
    Jun 14, 2019
    Messages:
    3
    Likes Received:
    0
  16. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Unfortunately I couldn't reproduce it myself :(
     
  17. k-m-c

    k-m-c New Member

    Joined:
    Sep 20, 2016
    Messages:
    2
    Likes Received:
    0
    @joaomgcd I'm having the same or a similar problem using EventGhost and the AutoRemote plugin. I did use the following setup successfully to send my clipboard content to my phone. However, it stopped working a while ago - not sure if or what changed.

    upload_2019-11-13_12-8-47.png

    The Python script does the following:
    Code (Text):
    import win32clipboard
    # get clipboard data
    win32clipboard.OpenClipboard()
    eg.globals.clpbrd = win32clipboard.GetClipboardData()
    eg.globals.clpbrd = eg.globals.clpbrd.decode('latin1')
    # eg.globals.clpbrd = eg.globals.clpbrd.encode('utf-8')
    #clpbrd = win32clipboard.GetClipboardData()
    win32clipboard.CloseClipboard()
    print eg.globals.clpbrd
    If I set "äüä" in the clipboard and run the command, I get the following error in the log
    It works with non-special characters, so it is certainly an issue with the encoding. The characters also show up correctly in the OSD (last command in EventGhost).

    You may have noticed the line
    Code (Text):
    # eg.globals.clpbrd = eg.globals.clpbrd.encode('utf-8')
    in the script. I saw this in another post and tried this out, but without success. Also, I re-installed EventGhost and the latest AR plugin, no success either...

    Thanks for your help!
     
    Last edited: Nov 13, 2019
  18. k-m-c

    k-m-c New Member

    Joined:
    Sep 20, 2016
    Messages:
    2
    Likes Received:
    0
    @joaomgcd any chance you could look into this? Would be much appreciated!
     
  19. mat4444

    mat4444 Member

    Joined:
    Nov 13, 2017
    Messages:
    47
    Likes Received:
    0
  20. Bernd

    Bernd New Member

    Joined:
    Dec 2, 2020
    Messages:
    1
    Likes Received:
    0
    "__init__.py" Version v.1.991009
    I added the following line to send ö,ä,ü to Android :
    ----------------------------------------------
    class SendMessage(eg.ActionBase):
    ...
    text = text.encode('utf-8')
    message = Message(self, key,text,ttl,password,target,files)
    message.Send(self)
    ---------------------------------------------
     

Share This Page