Thanks to Oxtie I have removed a huge annoyance from the mailcheck docklet:
I'm really sick of Mail Check docklets! I'm simply missing decency in these docklets! Only if the Dial-Up or Network is connected, docklet should try to check! otherwise simply keep its ass shut!Is there such docklet available? Common people! If connection is not ON and the docklets tries for it then it either crashes or gives annoyances!!!
Fixed it, you can now set a custom string for the "no internet-connection"-state. Also, the docklet does not try to check e-mail when there is no active internet connection available.
Also fixed an error with the Images-paths.
Ofcourse, download at The One and Only yzDocklet place
PS.
For all developers out there, here is the code to check if there is an internet connection present:
#include <wininet.h>
#pragma comment(lib,"wininet.lib")
bool IsConnectedToInternet()
{
// post: true has been returned if there is an internetconnection, otherwise false has been returned
DWORD dwConnectionType = INTERNET_CONNECTION_MODEM | INTERNET_CONNECTION_LAN | INTERNET_CONNECTION_PROXY;
return InternetGetConnectedState(&dwConnectionType,0)==TRUE;
}
I think you might want to use this snippet for your weather docklet albeik ![]()
Aqua-Soft Forums