From 0de0a7181ae970d937391421643b5639d5c9529e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 May 2013 21:23:46 +0000 Subject: a hotkey to launch Facebook posting dialog git-svn-id: http://svn.miranda-ng.org/main/trunk@4807 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/proto.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'protocols/FacebookRM/src/proto.cpp') diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 582b7309c2..3cfec37abb 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -53,12 +53,23 @@ FacebookProto::FacebookProto(const char* proto_name,const TCHAR* username) HookProtoEvent(ME_IDLE_CHANGED, &FacebookProto::OnIdleChanged, this); HookProtoEvent(ME_TTB_MODULELOADED, &FacebookProto::OnToolbarInit, this); + char module[512]; + mir_snprintf(module, sizeof(module), "%s/Mind", m_szModuleName); + + HOTKEYDESC hkd = { sizeof(hkd) }; + hkd.dwFlags = HKD_TCHAR; + hkd.ptszDescription = LPGENT("Show Mind Window"); + hkd.pszName = "ShowMindWnd"; + hkd.ptszSection = m_tszUserName; + hkd.pszService = module; + hkd.DefHotKey = HOTKEYCODE(HOTKEYF_ALT|HOTKEYF_EXT, 'F'); + Hotkey_Register(&hkd); + // Create standard network connection TCHAR descr[512]; NETLIBUSER nlu = {sizeof(nlu)}; nlu.flags = NUF_INCOMING | NUF_OUTGOING | NUF_HTTPCONNS | NUF_TCHAR; nlu.szSettingsModule = m_szModuleName; - char module[512]; mir_snprintf(module, SIZEOF(module), "%s", m_szModuleName); nlu.szSettingsModule = module; mir_sntprintf(descr, SIZEOF(descr), TranslateT("%s server connection"), m_tszUserName); -- cgit v1.2.3