문제

Is there a practical way to set the global status message in Pidgin for Windows from .NET?

Dbus is not available in the Windows version of Pidgin.

Searching SO and the net has revealed helpful tips such as "rewrite libpurple in C#", which might be a bit beyond my time/enthusiasm level for this project at least...

Thanks

도움이 되었습니까?

해결책

how about writing a plugin, and have it expose a way for your other program to pass the status to it. Could be a file that you write the status to, or maybe a local tcp port (if you can do that in plugins).

다른 팁

Have you considered simply simulating keyboard input to the Pidgin window using C#?

You will need to find the Pidgin window programmatically and then set your status by sending simulated keyboard input to that window handle.

A good Microsoft example of how it was done with Calculator:

http://msdn.microsoft.com/en-us/library/ms171548.aspx

As I recall, Pidgin will set your status if you simply put the main window (buddy list) in focus, start typing, and then press Enter. Simulating this keyboard input should be quite straightforward.

A dirty solution (that future versions of Pidgin might break), yes, but certainly MUCH easier than writing a plug-in or making your own libpurple wrapper.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top