Hi,
I'm trying to use CreateWindowEx (and SetProp) like in \plugins\MceRemote\__init__.py. But I'm having a problem with the Windows title/caption. It's allways shown carbled in e.g. spy++. The same happens with the property name (SetProp). But the class name is correct.
I have the same effect, if I inspect the HiddenMceMessageReceiver window from MceRemote. Of course, the window "EventGhost Message Receiver" from "\eg\Classes\MessageReceiver.py" is correct.
Anyone know what happens?
BTW:
In most files I can read "# -*- coding: utf-8 -*-" at the beginning. But all files (from EventGhost_0.4.1.r1568_Setup.exe) are in DOS encoding?
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.
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.
problem with window name and CreateWindowEx
Re: problem with window name and CreateWindowEx
Maybe it's easier if you see a screenshot (from WIndow Detective):

For this screenshot only the plugin "Microsoft MCE Remote" (left side) was enabled.
Just look at "Window Text" or Font --> "Face Name". I guess somewhere is a mix of Unicode and ANSI WINAPI functions in EventGhost? This only happens if I use ctypes for creating a Window. It seems to work if I use win32gui (of course, this allways create ANSI WIndows).
But ok. I'm able to set a correct windows prop with ctypes. That's enough to make my plugin works.

For this screenshot only the plugin "Microsoft MCE Remote" (left side) was enabled.
Just look at "Window Text" or Font --> "Face Name". I guess somewhere is a mix of Unicode and ANSI WINAPI functions in EventGhost? This only happens if I use ctypes for creating a Window. It seems to work if I use win32gui (of course, this allways create ANSI WIndows).
But ok. I'm able to set a correct windows prop with ctypes. That's enough to make my plugin works.