After more 1 000 000 (one million) views on forum for 1.5.0.x development versions... and 1.6.0.0 version
A new stable version, UltraVNC 1.6.1.0 and UltraVNC SC 1.6.1.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38080
Feedback is welcome

Celebrating the 22th anniversary of the UltraVNC (25th anniversary since the laying of the foundation stone): https://forum.uvnc.com/viewtopic.php?t=38031

Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078

Development: UltraVNC development is always here... Any help is welcome.
A new development version, UltraVNC 1.6.3.0-dev has been released, please test it: https://forum.uvnc.com/viewtopic.php?t=38091
Feedback is welcome

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Notification that someone has connected to the server

Any features you would like to see in UltraVNC? Propose it here
Post Reply
Guest

Notification that someone has connected to the server

Post by Guest »

It would be nice to have a more obvious notification that someone has connected to a server. I realize that the system tray icon changes color, but if I'm sitting at my computer and someone logs on, I'd like to have an always on top window pop up telling me that someone has logged in.

Other than that, the software is great!

a.mous@shaw.ca
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

Post by bevtech »

Thank you for your request, it will be taken under consideration.
Always try the Newest Stable version before posting to the feature request forum..:D
OhMyGoat
40
40
Posts: 103
Joined: 2005-05-15 02:35

Post by OhMyGoat »

which windows version are you using? i did an ultravnc change some time ago that showed a tray icon tooltip balloon when a connection was successfull or failed. it also played a sound with the balloon if the windows was version previous than ME.
if you know a bit of c++ i can try sending you the sources so you can add that feature to your ultravnc.
OhMyGoat
40
40
Posts: 103
Joined: 2005-05-15 02:35

Post by OhMyGoat »

global variables:

Code: Select all

DWORD shell32ver;
changes to vncMenu::SendTrayMsg(DWORD msg, BOOL flash) (vncmenu.cpp):

Code: Select all

shell32ver = GetDllVersion("shell32.dll");
m_nid.hWnd = m_hwnd;

if (shell32ver >= PACKVERSION(6,00)) {
m_nid.cbSize = sizeof(NOTIFYICONDATA);
} else if (shell32ver >= PACKVERSION(5,00)) {
m_nid.cbSize = NOTIFYICONDATA_V2_SIZE;
} else {
m_nid.cbSize = NOTIFYICONDATA_V1_SIZE;
}
 

this is a global function (in vncmenu.cpp)

Code: Select all

void ShowBalloonTip(LPCTSTR szMsg, LPCTSTR szTitle, DWORD dwInfoFlags) {
	NOTIFYICONDATA tmpm_nid = m_nid;
	if (shell32ver >= PACKVERSION(5,00) && !vncService::RunningAsService()) { 
	tmpm_nid.cbSize=sizeof(tmpm_nid);
	tmpm_nid.uFlags = NIF_INFO;
	tmpm_nid.uTimeout = 10000;
	tmpm_nid.dwInfoFlags = dwInfoFlags;
	strcpy(tmpm_nid.szInfo,szMsg ? szMsg : "");
	strcpy(tmpm_nid.szInfoTitle,szTitle ? szTitle : "");
	Shell_NotifyIcon(NIM_MODIFY, &tmpm_nid);
}
}

all the following changes goes in vncclient.cpp:

add this extern:

Code: Select all

extern void ShowBalloonTip(LPCTSTR szMsg, LPCTSTR szTitle, DWORD dwInfoFlags);

after the following lines inside vncclient.cpp:

Code: Select all

authmsg = Swap32IfLE(rfbVncAuthFailed);
m_socket->SendExact((char *)&authmsg, sizeof(authmsg));
add this (IDR_LOGONFAILED is a resource wav file for the sound, if you don't want it just remove the playsound line):

Code: Select all

PlaySound(MAKEINTRESOURCE(IDR_LOGONFAILED),NULL,SND_ASYNC | SND_RESOURCE);
char msg[128] = "";
strcat(msg,"Login failed from the following ip: ");
strcat(msg,m_socket->GetPeerName());
ShowBalloonTip(msg,SZ_CLIENT_LOGON_FAILED_TITLE,NIIF_WARNING);
after the line:

Code: Select all

	// Tell the server that this client is ok
add this (IDR_LOGONOK is a resource wav):

Code: Select all

	PlaySound(MAKEINTRESOURCE(IDR_LOGONOK),NULL,SND_ASYNC | SND_RESOURCE);
	char msg[128] = "";
			strcat(msg,"Successfull connection from ip: ");
			strcat(msg,m_socket->GetPeerName());
			ShowBalloonTip(msg,SZ_CLIENT_LOGON_SUCCESSFUL_TITLE,NIIF_INFO);
	return m_server->Authenticated(m_client->GetClientId());

after

Code: Select all

// Quit this thread.  This will automatically delete the thread and the
// associated client.
add this (IDR_LOGOFF is a resource wav file):

Code: Select all

PlaySound(MAKEINTRESOURCE(IDR_LOGOFF),NULL,SND_ASYNC | SND_RESOURCE);
char msg[128] = "";
strcat(msg,"Logoff from ip: ");
strcat(msg,m_socket->GetPeerName());
ShowBalloonTip(msg,SZ_CLIENT_LOGOFF_TITLE,NIIF_INFO);

I also remember that the NOTIFYICONDATA m_nid; object should remain global and not in the vncmenu class so if it's there take it out and make it global.

want to know how to make the computer case glow when somebody is connected? i'll tell you next time :P
Last edited by OhMyGoat on 2005-10-23 05:31, edited 2 times in total.
garyamort
Posts: 7
Joined: 2005-10-28 16:28

Re: Notification that someone has connected to the server

Post by garyamort »

Anonymous wrote:It would be nice to have a more obvious notification that someone has connected to a server. I realize that the system tray icon changes color, but if I'm sitting at my computer and someone logs on, I'd like to have an always on top window pop up telling me that someone has logged in.

Other than that, the software is great!

a.mous@shaw.ca
Configure VNC to prompt you for permission when someone connects, with a default action of Accept, and you can simulate notification(well, it isn't a simulation, you ARE notified, but you also have an option to reject the connection)
davidgrudek
20
20
Posts: 53
Joined: 2008-02-11 05:46

Re: Notification that someone has connected to the server

Post by davidgrudek »

My boss told me that one of his friends set ultravnc to change the wallpaper to a bitmap that says support enabled and once a connection is established it changes the wallpaper again to support connected. Maybe this would be good. Make the wallpaper be a low resolution that will be faster under slow conditions.
User avatar
JDaus
Friend of UVNC
Friend of UVNC
Posts: 537
Joined: 2007-03-17 11:00
Location: Sydney, Australia
Contact:

Re: Notification that someone has connected to the server

Post by JDaus »

you can easily set it to disable wallpaper ...

also if you enable a visual prompt in windows (xp ?) to show when the control key is pressed ...

this allows you to see when a connection is made, without having to change any of the VNC settings (perhaps you cannot)

(it displays something similar to a bulls-eye around your curser) ...

http://www.microsoft.com/enable/trainin ... inter.aspx shows the procedure in win XP ... not sure about other OS's
ask a silly question and remain a fool for 5 minutes...
don't ask, and remain a fool for life - JDaus 2003

without imperfections, neither you nor i would exist - Steven Hawkins
__
JD
SCPrompt - OpenSource Free Remote Screen\Desktop Sharing Solution
SecureTech.com.au
Post Reply