Jump to content
Fivewin Brasil

Aplicacao Rodando no TRAY exibindo balao de Notificação


marcioe

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...