[Pidgin] #9698: Method for externally closing Pidgin properly (command-line switch?)
Pidgin
trac at pidgin.im
Mon Mar 8 15:37:20 EST 2010
#9698: Method for externally closing Pidgin properly (command-line switch?)
------------------------------+---------------------------------------------
Reporter: qwertymodo | Owner: datallah
Type: enhancement | Status: new
Milestone: Plugin Suggested | Component: winpidgin (gtk)
Version: 2.5.8 | Resolution:
Keywords: |
------------------------------+---------------------------------------------
Comment(by qwertymodo):
Sorry to resurrect this, I kinda gave up for awhile, but now I have a
better idea of exactly what it is I am asking. When the Buddy List window
is in focus, if you press Ctrl+Q, the program exits cleanly. I was hoping
to achieve this same effect using the Windows SendMessage or PostMessage
API calls. However, Pidgin does not seem to respond to these calls. I
start by getting the HWND for the window whose WindowClass is
"gdkWindowToplevel" Window Caption is "Buddy List" and first child window
is "Pidgin". I then use the appropriate SendMessage or PostMessage calls
to send the Ctrl+Q keyboard event to that HWND. Unfortunately, it does
nothing. I have checked my SendMessage/PostMessage calls against message
logs using Spy++ to log the messages sent when I actually use the keyboard
(which does work), but to no avail. So either my programming is totally
off or else Pidgin is ignoring these virtual keystrokes. If it is the
latter, then hopefully it is more clear now what it is I am asking for as
far as this ticket is concerned. If the problem is mine however, perhaps
someone could lend some advice?
--
Ticket URL: <http://developer.pidgin.im/ticket/9698#comment:6>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list