What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] Interop object and Call to Shell_NotifyIcon

[Question] Interop object and Call to Shell_NotifyIcon
Author: Message:
unknown1506
New Member
*


Posts: 4
Joined: May 2005
O.P. [Question] Interop object and Call to Shell_NotifyIcon
Hello, I know that the Interop object has  a function named Call wich allows us to call functions from external dll's. I want to call the Shell_NotifyIcon function wich is used to create an icon on the systray. The thing is that I don't know exactly how to invoke the fuction since it is called:

Shell_NotifyIcon(NIM_ADD,&niData);

where NIM_ADD is the message &H0
and niData is a variable of structure NOTIFYICONDATA defined as follows:

Type NOTIFYICONDATA
   cbSize As Long
   hWnd As Long
   uID As Long
   uFlags As Long
   uCallbackMessage As Long
   hIcon As Long
   szTip As String * 128
   dwState As Long
   dwStateMask As Long
   szInfo As String * 256
   uTimeoutAndVersion As Long
   szInfoTitle As String * 64
   dwInfoFlags As Long
   guidItem As GUID
End Type

Hope someone can help,
Thanks in advance.

This post was edited on 06-25-2006 at 05:06 PM by unknown1506.
06-25-2006 04:40 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Question] Interop object and Call to Shell_NotifyIcon
I can't guarantee how correct this is going to be :

http://mattyg.ca/geshi/shell_notifyicon.php
06-29-2006 02:11 AM
Profile E-Mail PM Find Quote Report
unknown1506
New Member
*


Posts: 4
Joined: May 2005
O.P. RE: [Question] Interop object and Call to Shell_NotifyIcon
Thanks a lot!

That example really helped a lot and i got it to work with some minor modifications, the thing is that when i put the mouse over the icon on the tray it dissapears. Any idea why?

Thanks in advance.
07-15-2006 10:42 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On