Norm Kirchner Posted January 16, 2004 Report Share Posted January 16, 2004 I would like to make a peice of code that sends a LV app to the "System Tray". I have found that the function to call is "Shell_NotifyIcon" in the "Shell32.dll". It needs 2 inputs of type DWORD and PNOTIFYICONDTA. The later data type is a complex data type containing many parts. :headbang: I belive that it will be necessary to make a CIN in which the DLL will be called. I have the documentation on how to do this. What I need is to figure out how to manipulate the data into the data types so that I can send it to the DLL. The MSDN doc on the PNOTIFYICONDATA type is http://msdn.microsoft.com/library/default....ifyicondata.asp -Norm Quote Link to comment
Rolf Kalbermatter Posted April 21, 2004 Report Share Posted April 21, 2004 I have meant to try to get something done but never got around it. And yes you can't do without DLL or CIN. Georgo Zou has however in his Toolkit functions to just do that. Rolf Kalbermatter Quote Link to comment
aledain Posted April 22, 2004 Report Share Posted April 22, 2004 I have meant to try to get something done but never got around it. And yes you can't do without DLL or CIN. I did get this to also work with an ActiveX component downloaded from the net. I cannot remember the name of the one I used <chagrin> but a quick google reveraled a fair few and some of them appeared to be free. Quote Link to comment
Mikrobi Posted May 26, 2004 Report Share Posted May 26, 2004 George Zou made two years ago some kind of stuff called gtoolbox, with methods to insert to taskbar icons and descriptions. It was controled by some vis. I probably have it somewhere in my archives. You could also search this archives: http://www.mooregoodideas.com/FAVIs/Operating_System.htm best regards Mikrobi Quote Link to comment
Mikrobi Posted May 27, 2004 Report Share Posted May 27, 2004 I've found quite simple method: Download ActiveX ocx file from http://download.com.com/3001-2401-890762.html Be sure that you LabVIEW don't work yet. Next register ActiveX component it in the system: from windows>Run: REGSVR32.EXE [your drive letter]:\[OCX_Dir]\STI.ocx Now run LabVIEW and at Front Panel select >>Container>>ActiveX Container >> right mouse button and Inser ActiveX Object... at option Create Control will be active listbox contains 'Validate Servers' >> STI Control and at diagram you could use Invoke and Property Nodes to set your options based at help file 'sti-help.html' in STI zip. I hope it would help best regards Mikrobi Quote Link to comment
aledain Posted May 28, 2004 Report Share Posted May 28, 2004 Aah I remember now, STI was the one I got to work under LV too. It worked quite nicely. I would suggest checking out George's tools as well because his stuff is always top shelf. Quote Link to comment
Mike Ashe Posted December 30, 2004 Report Share Posted December 30, 2004 Ditto on checking George's toolkit out. The price is trivial for what you get and George has been pretty responsive when I have asked for help on a couple of examples. Quote Link to comment
Lord-Overon Posted February 28, 2005 Report Share Posted February 28, 2005 Hi I have to write a program that should be minimized to the system-tray (I have found some OCX-File's - they can display an icon in the tray) but how can I react to clicks at this clicks? Is the shell32.dll the only way? Could somebody give me an simple example? Or a hint to solve this problem. Thanks a lot... *sorry my english ist not the best* Quote Link to comment
Jimmy-Chen Posted March 1, 2005 Report Share Posted March 1, 2005 HiI have to write a program that should be minimized to the system-tray (I have found some OCX-File's - they can display an icon in the tray) but how can I react to clicks at this clicks? Is the shell32.dll the only way? Could somebody give me an simple example? Or a hint to solve this problem. Thanks a lot... *sorry my english ist not the best* 4056[/snapback] If you use the OCX component,you can obtain the OCX Click to trigger use the Dynamic event. Other post,Here~ Hope this helpful.. Quote Link to comment
Lord-Overon Posted March 2, 2005 Report Share Posted March 2, 2005 Thanks for your comment... I have found this in the officiel NI - Board NI - Forum There is a 5 MB download and this is all I need and maybe other people too. Quote Link to comment
gmiles Posted August 28, 2005 Report Share Posted August 28, 2005 I would like to make a peice of code that sends a LV app to the "System Tray".I have found that the function to call is "Shell_NotifyIcon" in the "Shell32.dll". It needs 2 inputs of type DWORD and PNOTIFYICONDTA. The later data type is a complex data type containing many parts. :headbang: I belive that it will be necessary to make a CIN in which the DLL will be called. I have the documentation on how to do this. What I need is to figure out how to manipulate the data into the data types so that I can send it to the DLL. The MSDN doc on the PNOTIFYICONDATA type is http://msdn.microsoft.com/library/default....ifyicondata.asp -Norm 304[/snapback] Check out this website: INVENTEERING - INVtray LabVIEW Toolkit Quote Link to comment
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.