marcioe Posted February 25, 2014 Report Share Posted February 25, 2014 Amigos Tenho em minha empresa uma opcao de Controle de Registro de Atendimentos que manda SMS para os Técnicos. funciona 100% Porem no Computador que Gerencia isso (QUE FICA NA EMPRESA LIGADO 24 HS) tenho uma aplicação que roda no TRAY do relogio do windows. Queria que ao Receber uma Atendimento Ele mostre Um balão (tipo quando Pluga Um Novo Dispositivo) para que o usuario Fique Alerta que Tem Novos Atendimentos. Eu consigo Fazer com o msginfo('NOVO CAHAMADO XXXXXX'), mas incomoda, e eu queria o Balão Tipo os que Colocamos nos ToolTip := {"Novo Atendimento xxxxxx","Ajuda","", }, e que apos um tempo ele feche sozinho. Agradeco Antecipado aos Amigos. Quote Link to comment Share on other sites More sharing options...
oribeiro Posted February 25, 2014 Report Share Posted February 25, 2014 Rapaz, como você faz para enviar SMS? É um serviço pago? Tem um modem 3G instalado no computador? Quote Link to comment Share on other sites More sharing options...
wanderlei Cardoso Posted February 25, 2014 Report Share Posted February 25, 2014 Olá Marcio, Substitui por este comando: ShowNotifyInfo( GetModalHandle() , .F. , "Servidor OnLine" , NIL, "Tem nova Mensagem" ,"Numero.: 999999999" ) ShowNotifyInfo( GetModalHandle() , .T. , "Servidor OnLine" , NIL, "Tem nova Mensagem" ,"Numero.: 999999999" ) #pragma BEGINDUMP #define _WIN32_IE 0x0500 #define HB_OS_WIN_32_USED #define _WIN32_WINNT 0x0400 #include <shlobj.h> #include <windows.h> #include <commctrl.h> #include "hbapi.h" static void ShowNotifyInfo(HWND hWnd, BOOL bAdd, HICON hIcon, LPSTR szText, LPSTR szInfo, LPSTR szInfoTitle); HB_FUNC ( SHOWNOTIFYINFO ) { ShowNotifyInfo( (HWND) hb_parnl(1), (BOOL) hb_parl(2), (HICON) hb_parnl(3), (LPSTR) hb_parc(4), (LPSTR) hb_parc(5), (LPSTR) hb_parc(6) ); } static void ShowNotifyInfo(HWND hWnd, BOOL bAdd, HICON hIcon, LPSTR szText, LPSTR szInfo, LPSTR szInfoTitle) { NOTIFYICONDATA nid; ZeroMemory( &nid, sizeof(nid) ); nid.cbSize= sizeof(NOTIFYICONDATA); nid.hIcon= hIcon; nid.hWnd= hWnd; nid.uID= 0; nid.uFlags= NIF_INFO | NIF_TIP | NIF_ICON; nid.dwInfoFlags= NIIF_INFO; lstrcpy( nid.szTip, TEXT(szText) ); lstrcpy( nid.szInfo, TEXT(szInfo) ); lstrcpy( nid.szInfoTitle, TEXT(szInfoTitle) ); if(bAdd) Shell_NotifyIcon( NIM_ADD, &nid ); else Shell_NotifyIcon( NIM_DELETE, &nid ); if(hIcon) DestroyIcon( hIcon ); } #pragma ENDDUMP Quote Link to comment Share on other sites More sharing options...
marcioe Posted February 25, 2014 Author Report Share Posted February 25, 2014 Ao amigo... oribeiroa rotina de envio de sms está aqui http://fivewin.com.br/index.php?/topic/21512-rotina-para-envio-de-msg-de-texto-para-celular/?hl=envio Quote Link to comment Share on other sites More sharing options...
oribeiro Posted February 26, 2014 Report Share Posted February 26, 2014 Marcio, Você montou um servidor usando as funções que o www.fsist.com está vendendo? Qual modem você instalou? http://www.fsist.com...m_160_caracters http://www.fsist.com.br/sms.aspx?tel=coloque_o_dd_e_o_numero&msg=Aqui_Voce_escreve_a_sua_menssagem_160_caracters mas voces podem criar um servidor na empresa de voces para enviar por um custo de 0,50 por dia indiferente do numero (mas lembrando que se for muito grande o numero de envios, pode travar o chip) http://fsist.blogspo...ra-php-asp.html Quote Link to comment Share on other sites More sharing options...
marcioe Posted February 26, 2014 Author Report Share Posted February 26, 2014 to usano a solução da empresa http://www.tiltsms.com.br, por 0,05 por sms. pois nosso numero é pequeno ainda por dia.... Quote Link to comment Share on other sites More sharing options...
oribeiro Posted February 27, 2014 Report Share Posted February 27, 2014 Márcio, Entrei em contato com o pessoal da Tilt e achei interessante. Você pode postar a sua solução aqui? Quote Link to comment Share on other sites More sharing options...
marcioe Posted February 27, 2014 Author Report Share Posted February 27, 2014 está no link http://fivewin.com.br/index.php?/topic/21512-rotina-para-envio-de-msg-de-texto-para-celular/?hl=envio Quote Link to comment Share on other sites More sharing options...
oribeiro Posted February 27, 2014 Report Share Posted February 27, 2014 Valeu! Consegui. O único problema é mostrar o número do celular deles como remetente. (risos) Obrigado, Quote Link to comment Share on other sites More sharing options...
marcioe Posted February 27, 2014 Author Report Share Posted February 27, 2014 ok Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.